Update comment
PATCH {{baseUrl}}/api/v1/communityTopics/:id/comments/{id}
This API helps update a published comment.
OAuth Scope
Desk.community.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"modifiedTime":"2018-10-16T10:21:00.386Z","creator":{"photoUrl":"https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456","name":"user 2","id":"7000000015971","label":{"preferences":{"shape":"RECTANGLE","bgColor":"#23F123","textColor":"#2CA123"},"name":"Admin","id":"6000000158001","logoUrl":"https://desk.zoho.com/portal/api/publicImages/6000000158231?orgId=14132"},"type":"AGENT"},"attachments":[{"size":"1166","name":"download.png","id":"4000000019027","href":"https://desk.zoho.com/api/v1/communityTopics/4000000019003/comments/4000000019031/attachments/4000000019027/content?orgId=123456"}],"replies":[],"createdTime":"2018-10-16T10:21:00.386Z","id":"4000000019031","content":"Comment updated 1","status":"PUBLISHED"}