- URL:https://[root]/content/items/[itemID]/addComment(POST only)
Example Usage
URL for Add Comment
https://www.arcgis.com/sharing/rest/content/items/a50b5179b49a4256a248c7b5ffb82dd7/addComment
Comment= This map is very accurate. I was able to find the right bike route to my destination.
Description
Add a new comment or reply to an existing comment on an item (POST only). Available only to authenticated users who have access to the item.
A comment can only have one level of replies, reply to a reply comment is not supported. An email notification is sent to the item owner automatically as well as everyone on the thread if it is a reply when a comment is added.
Request Parameters
Parameter | Details |
---|---|
[Common Parameters] | For a complete listing, see Common parameters. |
comment | Add comment text to item. |
parentId | (optional) The ID of the parent comment if it is a reply. |
Response Properties
Property | Details |
---|---|
success | Set to true if the comment was posted successfully. |
commentId | The ID of the comment submitted. |
JSON Response Syntax
{
"success": true | false,
"commentId": "<comment id>"
}
JSON Response Example
{
"success": true,
"commentId": "722286f355424f5bb87f95464d216bac"
}