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

NameDescriptionRequired
scopeID Network in which the stream is to be posted. You can get this from the network list API.Required
streamIdYou can get the ID from the stream API.Required
parentCommentIdFor replies to a comment, the respective comment id has to be given.Optional
commentContent

The Maximum character limit allowed for a comment is 10000.

Mention in a post:

We handle three types of mentions: org-group, user, and group mention

  1. <user:mention>userId:username</user:mention> (user mention)
  2. <group:mention>partitionId:partitionName</group:mention>
  3. <orggroup:mention>zgid:group name</orggroup:mention>

 

Format a post:

  1. Bold = <b>Content+here</b>
  2. Italic = <i>Content+here</i>
  3. Underline = <u>Content+here</u>
  4. OrderedList = <ol><li>Content+here</li><li>Content+here</li></ol>
  5. UnorderedList = <ul><li>Content+here</li><li>Content+here</li></ul>
  6. Blockquote = <blockquote>Content+here</blockquote>
  7. Highlight = <code>Content+here</code>
  8. Strikethrough = <strike>Content+here</strike>
Required
fileIdsFile 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"
    }
  }
}