Item Comment

Description

Gets details for a particular comment.

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

Property

Details

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.

NoteNote:

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.

Example Usage

URL for Item Comment

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

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
}

9/13/2017