POST api/2.0/community/blog/{postid}/comment
Adds a comment to the post with the ID specified in the request. The parent comment ID can be also specified if needed.
Name |
Description |
Type |
Example |
postid
sent in url
|
Post ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
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 don'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"
application/json
{
"status": 0,
"response": {
"id": "00000000-0000-0000-0000-000000000000",
"created": "2023-01-27T05:35:45.3464516Z",
"updated": "2023-01-27T05:35:45.3464516Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"text": "comment text",
"parentId": "00000000-0000-0000-0000-000000000000"
}
}
text/xml
<result>
<status>0</status>
<response>
<id>00000000-0000-0000-0000-000000000000</id>
<created>2023-01-27T05:35:45.3464516Z</created>
<updated>2023-01-27T05:35:45.3464516Z</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>
<parentId>00000000-0000-0000-0000-000000000000</parentId>
</response>
</result>