comments: Item Comments

URL:
https://[root]/content/items/[itemID]/comments
Methods:
GET

Example Usage

URL for Item Comments

1
https://www.arcgis.com/sharing/rest/content/items/a50b5179b49a4256a248c7b5ffb82dd7/comments

Description

Lists all comments for an item.

Request Parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

[Paging Parameters]

For a complete list of paging parameters, see Paging parameters.

Response Properties

PropertyDetails

[Paging Properties]

The following paging properties are included in the response and they are described in Paging properties.

total, start, num, nextStart

comments

A JSON array of comment objects. See the response properties for Comment for details.

JSON Response Syntax

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "total": <total number of comments for the item>,
  "start": <the first record index in the response>,
  "num": <the number of comments in the response>,
  "nextStart": <the next entry index>,
  "comments": [{
  "id": "<comment id>",
  "owner": "<comment owner username>",
  "created": date created shown in UNIX time,
  "comment": "<comment text>"
},
  {<comment2>}
]}

JSON Response Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "total": 13,
  "start": 11,
  "num": 3,
  "nextStart": -1,
  "comments": [{
  "id": "0d59cee0f5394417a9a218a5038905eb",
  "owner": "jsmith",
  "created": 1258290013000,
  "comment": "This map is very accurate. I was able to find the right bike route to my destination."
},
  {<comment2>},
  {<comment3>}
]}

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