POST api/2.0/community/forum
Adds a thread to the category with the ID specified in the request.
Name |
Description |
Type |
Example |
categoryId
sent in body
|
Category ID (-1 for a 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
|
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"
}
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": "\\/Products\\/People\\/Profile.aspx?user=administrator"
},
"Description": "Sample thread",
"Created": "2020-12-07T13:56:02.3249197Z",
"Updated": "2020-12-07T13:56:02.3249197Z",
"RecentTopicTitle": "Sample topic",
"RecentTopicId": 1234
}
}
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>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
</UpdatedBy>
<Description>Sample thread</Description>
<Created>2020-12-07T13:56:02.3249197Z</Created>
<Updated>2020-12-07T13:56:02.3249197Z</Updated>
<RecentTopicTitle>Sample topic</RecentTopicTitle>
<RecentTopicId>1234</RecentTopicId>
</response>
</result>