Add comment
POST {{baseUrl}}/api/v1/communityTopics/:id/comments
This API helps add a comment to a forum topic.
OAuth Scope
Desk.community.CREATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
content (required) | <string> max chars : 50000 | Content of the comment |
attachmentIds | <JSONArray> | IDs of files to attach to the comment |
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/4000000019029/attachments/4000000019027/content?orgId=123456"}],"replies":[],"createdTime":"2018-10-16T10:21:00.386Z","id":"4000000019029","content":"Comment 1","status":"PUBLISHED"}