Create ticket comment

POST {{baseUrl}}/v1/tickets/:ticket_id/comments

This API adds a comment to a ticket. To include an @mention, follow this format: zsu[@user:{zuid}]zsu.

OAuth Scope

  • Desk.tickets.UPDATE

Attributes

Attribute NameData TypeDescription
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

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;modifiedTime&quot;:null,&quot;attachments&quot;:[{&quot;size&quot;:&quot;12734&quot;,&quot;name&quot;:&quot;Attachment.png&quot;,&quot;id&quot;:&quot;4000000008892&quot;,&quot;href&quot;:&quot;https://desk.zoho.com/api/v1/tickets/4000000528005/comments/4000000529001/attachments/4000000008892/content&quot;}],&quot;commentedTime&quot;:&quot;2017-01-24T14:06:58.193Z&quot;,&quot;isPublic&quot;:true,&quot;id&quot;:&quot;4000000529001&quot;,&quot;contentType&quot;:&quot;html&quot;,&quot;content&quot;:&quot;zsu[@user:11550965]zsu Please fix this ASAP&quot;,&quot;commenterId&quot;:&quot;4000000008692&quot;,&quot;commenter&quot;:{&quot;firstName&quot;:&quot;Jade&quot;,&quot;lastName&quot;:&quot;Tywin&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agents/4000000008692/photo?orgId=292828&quot;,&quot;name&quot;:&quot;Jade Tywin&quot;,&quot;roleName&quot;:&quot;LightAgent&quot;,&quot;type&quot;:&quot;AGENT&quot;,&quot;email&quot;:&quot;jade12tywin@zylker.com&quot;}}