Get Started
Portal api methods
Help

POST api/2.0/community/forum/topic/{topicid} This function requires authentication

Description

Adds a post to an existing topic with a post subject and content specified in the request

Parameters
Name Description Type Example
topicid
sent in url
Topic ID number 1234
parentPostId
sent in body
Parent post ID number 1234
subject
sent in body
Post subject (required) string some text
content
sent in body
Post text string some text
Example
POST api/2.0/community/forum/topic/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "parentPostId": 1234,
  "subject": "some text",
  "content": "some text"
}
Returns

New post

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 123,
    "subject": "Sample subject",
    "text": "Post text",
    "created": "2019-06-20T03:26:06.2158129Z",
    "updated": "2019-06-20T03:26:06.2158129Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "threadTitle": null,
    "attachments": [
      {
        "name": "picture.jpg",
        "contentType": "image\/jpeg",
        "created": "2019-06-20T03:26:06.2158129Z",
        "updated": "2019-06-20T03:26:06.2158129Z",
        "size": 122345,
        "path": "url to file"
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>123</id>
    <subject>Sample subject</subject>
    <text>Post text</text>
    <created>2019-06-20T03:26:06.2158129Z</created>
    <updated>2019-06-20T03:26:06.2158129Z</updated>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <threadTitle />
    <attachments>
      <name>picture.jpg</name>
      <contentType>image/jpeg</contentType>
      <created>2019-06-20T03:26:06.2158129Z</created>
      <updated>2019-06-20T03:26:06.2158129Z</updated>
      <size>122345</size>
      <path>url to file</path>
    </attachments>
  </response>
</result>