Update comment

PATCH {{baseUrl}}/api/v1/communityTopics/:id/comments/{id}

This API helps update a published comment.

OAuth Scope

  • Desk.community.UPDATE

Attributes

Attribute NameData TypeDescription
content<string>
max chars : 50000
Content of the comment/reply
attachmentIds<JSONArray>
Ids of the attachments added for this topic
isBestComment<boolean>
Key that defines whether the comment is the best comment recorded on the topic. A topic can have only on best comment.
notifyMentions<boolean>
default : false
whether to notify mentioned user while updateing content.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;modifiedTime&quot;:&quot;2018-10-16T10:21:00.386Z&quot;,&quot;creator&quot;:{&quot;photoUrl&quot;:&quot;https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456&quot;,&quot;name&quot;:&quot;user 2&quot;,&quot;id&quot;:&quot;7000000015971&quot;,&quot;label&quot;:{&quot;preferences&quot;:{&quot;shape&quot;:&quot;RECTANGLE&quot;,&quot;bgColor&quot;:&quot;#23F123&quot;,&quot;textColor&quot;:&quot;#2CA123&quot;},&quot;name&quot;:&quot;Admin&quot;,&quot;id&quot;:&quot;6000000158001&quot;,&quot;logoUrl&quot;:&quot;https://desk.zoho.com/portal/api/publicImages/6000000158231?orgId=14132&quot;},&quot;type&quot;:&quot;AGENT&quot;},&quot;attachments&quot;:[{&quot;size&quot;:&quot;1166&quot;,&quot;name&quot;:&quot;download.png&quot;,&quot;id&quot;:&quot;4000000019027&quot;,&quot;href&quot;:&quot;https://desk.zoho.com/api/v1/communityTopics/4000000019003/comments/4000000019031/attachments/4000000019027/content?orgId=123456&quot;}],&quot;replies&quot;:[],&quot;createdTime&quot;:&quot;2018-10-16T10:21:00.386Z&quot;,&quot;id&quot;:&quot;4000000019031&quot;,&quot;content&quot;:&quot;Comment updated 1&quot;,&quot;status&quot;:&quot;PUBLISHED&quot;}