POST api/2.0/community/event/{feedid}/comment
Adds a comment to the event with the specified ID. The parent event ID can be also specified if needed.
Name |
Description |
Type |
Example |
feedid
sent in url
|
Event ID
|
number
|
1234
|
content
sent in body
|
Comment content
|
string
|
some text
|
parentId
sent in body
|
Comment parent ID
|
number
|
1234
|
Send parentId=0 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": 10,
"parentId": 123,
"created": "2021-03-05T05:07:59.1701940Z",
"updated": "2021-03-05T05:07:59.1701940Z",
"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>10</id>
<parentId>123</parentId>
<created>2021-03-05T05:07:59.1701940Z</created>
<updated>2021-03-05T05:07:59.1701940Z</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>