comments: Item Comments

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

Example Usage

URL for Item Comments

Use dark colors for code blocksCopy
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

Use dark colors for code blocksCopy
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

Use dark colors for code blocksCopy
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.