POST api/2.0/project/task/{taskid}/comment
Adds the comments for the selected task with the comment text and parent comment ID specified in the request
Name |
Description |
Type |
Example |
taskid
sent in url
|
Task ID
|
number
|
1234
|
content
sent in body
|
Comment text
|
string
|
some text
|
parentid
sent in body
|
Parent comment ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
POST api/2.0/project/task/1234/comment
Host: yourportal.onlyoffice.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": "2021-03-02T06:12:00.9820850Z",
"updated": "2021-03-02T06:12:00.9820850Z"
}
}
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>2021-03-02T06:12:00.9820850Z</created>
<updated>2021-03-02T06:12:00.9820850Z</updated>
</response>
</result>