Create a task comment
POST {{baseUrl}}/v1/tasks/:task_id/comments
This API adds a comment to a task.
OAuth Scope
Desk.activities.UPDATEDesk.activities.tasks.UPDATEDesk.tasks.UPDATE
Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| content | <string> max chars : 32000 | Content of the comment. To retrieve or set user mentions, use this code format: zsu[@user:{zuid}zsu. |
| contentType | <string> max chars : 100 | Used to denote the content-type which maybe html or plainText. The default type is html. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"modifiedTime":null,"attachments":[{"size":"12734","name":"Attachment.png","id":"4000000008994","href":"https://desk.zoho.com/api/v1/tasks/4000000528005/comments/4000000529001/attachments/4000000008994/content"}],"commentedTime":"2017-01-24T14:54:33.534Z","id":"4000000530003","contentType":"html","content":"First Task comment.","commenterId":"4000000008692","commenter":{"firstName":"Jade","lastName":"Tywin","photoURL":"https://desk.zoho.com/api/v1/agents/4000000008692/photo?orgId=292828","name":"Jade Tywin","roleName":"LightAgent","type":"AGENT","email":"jade12tywin@zylker.com"}}