Add a post comment
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.
Note: 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.
Path parameters
postid
type: string
Post ID
Example: "string"
Request body
content
type: string
Comment text
Example: "string"
parentId
type: string
Parent comment ID
Example: "string"
Request example
{
"content": "string",
"parentId": "string"
}
Returns
List of post comments. A request that is not authenticated returns 401.
Text
type: string
Example: "comment text"
Created
type: string
Example: "2020-12-03T21:36:13.0325127Z"
Updated
type: string
Example: "c2020-12-03T21:36:13.0325127Z"
Id
type: string
Example: "c2020-12-03T21:36:13.0325127Z"
CreatedBy
type: EmployeeWraper
Response example
{
"Text": "comment text",
"Created": "2020-12-03T21:36:13.0325127Z",
"Updated": "c2020-12-03T21:36:13.0325127Z",
"Id": "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"
}
}