Get Started
Usage API
More information

POST api/2.0/community/forum This function requires authentication

Description

Adds a thread to the category with the ID specified in the request.

Parameters
Name Description Type Example
categoryId
sent in body
Category ID (-1 for new category) number 1234
categoryName
sent in body
Category name string some text
threadName
sent in body
Thread name string some text
threadDescription
sent in body
Thread description string some text
Example
POST api/2.0/community/forum
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "categoryId": 1234,
  "categoryName": "some text",
  "threadName": "some text",
  "threadDescription": "some text"
}
Returns

Added thread

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 10,
    "title": "The Thread",
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "description": "Sample thread",
    "created": "2021-10-16T17:55:51.1990475Z",
    "updated": "2021-10-16T17:55:51.1990475Z",
    "recentTopicId": 1234,
    "recentTopicTitle": "Sample topic"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>10</id>
    <title>The Thread</title>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <description>Sample thread</description>
    <created>2021-10-16T17:55:51.1990475Z</created>
    <updated>2021-10-16T17:55:51.1990475Z</updated>
    <recentTopicId>1234</recentTopicId>
    <recentTopicTitle>Sample topic</recentTopicTitle>
  </response>
</result>