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"
List of post comments
application/json
{ "status": 0, "response": { "Id": "c2020-12-03T21:36:13.0325127Z", "Created": "2020-12-03T21:36:13.0325127Z", "Updated": "c2020-12-03T21:36:13.0325127Z", "CreatedBy": { "Id": "00000000-0000-0000-0000-000000000000", "DisplayName": "Mike Zanyatski", "Title": "Manager", "AvatarSmall": "url to small avatar", "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator" }, "Text": "comment text", "ParentId": "c2020-12-03T21:36:13.0325127Z" } }
text/xml
<result> <status>0</status> <response> <Id>c2020-12-03T21:36:13.0325127Z</Id> <Created>2020-12-03T21:36:13.0325127Z</Created> <Updated>c2020-12-03T21:36:13.0325127Z</Updated> <CreatedBy> <Id>00000000-0000-0000-0000-000000000000</Id> <DisplayName>Mike Zanyatski</DisplayName> <Title>Manager</Title> <AvatarSmall>url to small avatar</AvatarSmall> <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl> </CreatedBy> <Text>comment text</Text> <ParentId>c2020-12-03T21:36:13.0325127Z</ParentId> </response> </result>