Update ticket comment
PATCH {{baseUrl}}/v1/tickets/:ticket_id/comments/{comment_id}
This API modifies an existing comment. To include an @mention, follow this format: zsu[@user:{zuid}]zsu.
OAuth Scope
Desk.tickets.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. |
isPublic | <boolean> | Key that returns if a comment is public or not. The value of this key can be set only at the time of making a comment. |
attachmentIds | <list> | List of file attachments in the comment. For more information on attachments, refer to the Uploads section of this document. |
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":"2017-01-24T14:12:45.163Z","attachments":[{"size":"12734","name":"Attachment_edited.png","id":"4000000008994","href":"https://desk.zoho.com/api/v1/tickets/4000000528005/comments/4000000529001/attachments/4000000008994/content"}],"commentedTime":"2017-01-24T14:06:58.000Z","isPublic":true,"id":"4000000529001","contentType":"plainText","commenterId":"4000000008692","content":"Fixed the issue.","commenter":{"firstName":"Jade","lastName":"Tywin","photoURL":"https://desk.zoho.com/api/v1/portalUser/4000000008692/photo?orgId=292828","name":"Jade Tywin","roleName":"PortalUser","type":"END_USER","email":"jade12tywin@zylker.com"}}