POST api/2.0/community/forum
Для этой функции требуется аутентификация.
Описание
Добавляет thread в категорию с идентификатором, указанным в запросе.
Параметры
| Название | Описание | Тип | Пример |
| categoryId
sent in body
|
Идентификатор категории (-1 для новой категории) | номер | 1234 |
| categoryName
sent in body
|
Название категории | строковый | текст |
| threadName
sent in body
|
Название thread | строковый | строковый |
| threadDescription
sent in body
|
Описание темы | строковый | строковый |
Пример
POST api/2.0/community/forum
Host: yourportal.r7-office.ru
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": ""
},
"description": "Sample thread",
"created": "2022-10-03T19:03:27.5140733Z",
"updated": "2022-10-03T19:03:27.5140733Z",
"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>2022-10-03T19:03:27.5140733Z</created>
<updated>2022-10-03T19:03:27.5140733Z</updated>
<recentTopicId>1234</recentTopicId>
<recentTopicTitle>Sample topic</recentTopicTitle>
</response>
</result>








