Skip To Content
ArcGIS Developer
Dashboard

/addRating: Add Rating

  • URL:https://[root]/content/items/[itemID]/addRating(POST only)

Example Usage

URL for Add Rating

https://www.arcgis.com/sharing/rest/content/items/a50b5179b49a4256a248c7b5ffb82dd7/addRating
Rating=4

Description

Adds a rating to an item to which you have access (POST only). Only one rating can be given to an item per user. If this call is made on a currently rated item, the new rating will overwrite the existing rating. A user cannot rate their own item. Available only to authenticated users.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

rating

Rating to set for the item. Rating must be a floating point number between 1.0 and 5.0.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

JSON Response Syntax


            {
"success" : true | false
}

JSON Response Example


            {
"success" : true
}