/addComment: Add Comment

URL:
https://[root]/content/items/[itemID]/addComment
Methods:
POST

Example Usage

URL for Add Comment

1
2
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

ParameterDetails

[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

PropertyDetails

success

Set to true if the comment was posted successfully.

commentId

The ID of the comment submitted.

JSON Response Syntax

1
2
3
4
{
  "success": true | false,
  "commentId": "<comment id>"
}

JSON Response Example

1
2
3
4
{
  "success": true,
  "commentId": "722286f355424f5bb87f95464d216bac"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close