Skip To Content

/[commentID]: Item Comment

  • URL:https://[root]/content/items/[itemID]/comments/[commentID]

Example Usage

URL for Item Comment

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

Description

Gets details for a particular comment.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails
id

The ID of the comment.

owner

The username of the user who submitted the comment.

created

The date and time the comment was created.

comment

The comment text.

parentId

The ID of the parent comment if it is a reply to an existing comment or null.

numReplies

The number of replies to a comment.

Nota:

A comment can only have one reply level, reply to a reply is not supported.

latestReply

The date and time the comment's last reply in UNIX time in milliseconds, -1 if not applicable.

JSON Response Syntax


            {
  "id": "<comment id>",
  "owner": "<comment owner username>",
  "created": <date created shown in UNIX time>,
  "comment": "<comment text>",
  "parentId": "<parent comment id>",
  "numReplies": <num of replies>,
  "latestReply": <last reply date and time in UNIX time>
}

JSON Response Example


            {
  "id": "0d59cee0f5394417a9a218a5038905eb",
  "owner": "jsmith",
  "created": 1258290013000,
  "comment": "This map is very accurate.  I was able to find the right bike route to my destination."
  "parentId": null,
  "numReplies": 0,
  "latestReply": -1
}