POST api/2.0/community/bookmark/{id}/comment
Adds a comment to the bookmark with the ID specified in the request. The parent bookmark ID can be also specified if needed.
Name |
Description |
Type |
Example |
id
sent in url
|
Bookmark ID
|
number
|
1234
|
content
sent in body
|
Comment text
|
string
|
some text
|
parentId
sent in body
|
Parent comment ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
Send parentId=00000000-0000-0000-0000-000000000000 or doesn't send it at all if you want your comment to be on the root level.
Sending data in application/json:
{
content:"My comment",
parentId:"9924256A-739C-462b-AF15-E652A3B1B6EB"
}
Sending data in application/x-www-form-urlencoded
content="My comment"&parentId="9924256A-739C-462b-AF15-E652A3B1B6EB"
List of bookmark comments
application/json
{
"status": 0,
"response": {
"id": "00000000-0000-0000-0000-000000000000",
"created": "2022-06-30T19:45:16.0047750Z",
"updated": "2022-06-30T19:45:16.0047750Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"text": "comment text"
}
}
text/xml
<result>
<status>0</status>
<response>
<id>00000000-0000-0000-0000-000000000000</id>
<created>2022-06-30T19:45:16.0047750Z</created>
<updated>2022-06-30T19:45:16.0047750Z</updated>
<createdBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createdBy>
<text>comment text</text>
</response>
</result>