POST api/2.0/project/message/{messageid}/commentДанная функция требует аутентификацииОписание Параметры
Пример POST api/2.0/project/message/1234/comment
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json
{
"content": "some text",
"parentId": "9924256A-739C-462b-AF15-E652A3B1B6EB"
} Возвращает Пример ответа application/json {
"status": 0,
"response": {
"id": "00000000-0000-0000-0000-000000000000",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"text": "comment text",
"parentId": "00000000-0000-0000-0000-000000000000",
"inactive": false,
"canEdit": false,
"created": "2022-11-03T15:35:57.8730290Z",
"updated": "2022-11-03T15:35:57.8730290Z"
}
} text/xml <result>
<status>0</status>
<response>
<id>00000000-0000-0000-0000-000000000000</id>
<createdBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createdBy>
<text>comment text</text>
<parentId>00000000-0000-0000-0000-000000000000</parentId>
<inactive>false</inactive>
<canEdit>false</canEdit>
<created>2022-11-03T15:35:57.8730290Z</created>
<updated>2022-11-03T15:35:57.8730290Z</updated>
</response>
</result> |