/addRating: Add Rating

URL:
https://[root]/content/items/[itemID]/addRating
Methods:
POST

Example Usage

URL for Add Rating

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

Use dark colors for code blocksCopy
1
2
3
{
"success" : true | false
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
{
"success" : true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.