The purpose of this API is to add a comment to a post in Zoho Connect.
Request URL: | https://connect.zoho.com/pulse/api/v2/addComment |
OAuth Scope: | zohopulse.feedList.CREATE |
Request Method: | POST |
Threshold: | 25 requests per user/minute. |
Mandatory Header: | Header name: Authorization Header Value: Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52 |
Parameters
Name | Description | Required |
scopeID | Network in which the stream is to be posted. You can get this from the network list API. | Required |
streamId | You can get the ID from the stream API. | Required |
parentCommentId | For replies to a comment, the respective comment id has to be given. | Optional |
commentContent | The Maximum character limit allowed for a comment is 10000. We handle three types of mentions: org-group, user, and group mention
Format a post:
| Required |
fileIds | File IDs should be seperated by comma. You can upload files using the upload Files api and then use the file IDs. You can add up to 10 files to a post. | Optional |
Creating Comment:
Sample URL
Copiedhttps://connect.zoho.com/pulse/api/v2/addComment?scopeID=929000000015001&streamId=929000000955003&commentContent=%3Cb%3ESample+content%3C/b%3E%3Ci%3Efor+testing%3C/i%3E%3Col%3E%3Cli%3ERandom+access%3C/li%3E%3Cli%3EFirst+access%3C/li%3E%3C/ol%3Etest
Sample Response
Copied{
"addComment": {
"comment": {
"id": "929000000955018",
"time": "1530110228650",
"formatedTime": "08:07 PM",
"isApproved": "true",
"commentType": "COMMENT",
"content": "<b>Sample content</b><i>for testing</i><ol><li>Random access</li><li>First access</li></ol>test",
"userDetails": {
"zuid": "2060758",
"id": "2060758",
"name": "Patricia Boyle",
"canFollow": "true",
"type": "C"
},
"canEdit": "true",
"canDelete": "true",
"isSpam": "false"
}
}
}
Creating Reply:
Sample URL
Copiedhttps://connect.zoho.com/pulse/api/v2/addComment?scopeID=929000000015001&streamId=929000000955003&commentContent=%3Cb%3ESample+content%3C/b%3E%3Ci%3Efor+testing%3C/i%3E%3Col%3E%3Cli%3ERandom+access%3C/li%3E%3Cli%3EFirst+access%3C/li%3E%3C/ol%3Etest&parentCommentId=929000000955018
Sample Response
Copied{
"addComment": {
"comment": {
"id": "929000000955020",
"time": "1530110322002",
"formatedTime": "08:08 PM",
"isApproved": "true",
"commentType": "COMMENT",
"isReply": "true",
"parentCommentId": "929000000955018",
"pcUserDetails": {
"zuid": "2060758",
"id": "2060758",
"name": "Patricia Boyle",
"canFollow": "true",
"type": "C"
},
"content": "<b>Sample content</b><i>for testing</i><ol><li>Random access</li><li>First access</li></ol>test",
"userDetails": {
"zuid": "2060758",
"id": "2060758",
"name": "Patricia Boyle",
"canFollow": "true",
"type": "C"
},
"canEdit": "true",
"canDelete": "true",
"isSpam": "false"
}
}
}