- URL:
- https://[root]/content/updateItems
- Methods:
GET
Example Usage
The following is a sample ArcGIS Enterprise POST request for the update
operation:
POST /sharing/rest/content/updateItems HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
items=[{"2678d3002eea4e4a825e3bdf10016e61": {"categories": ["/Categories/Geology", "/Categories/Elevation"]}},{"c3ad4ed8bcf04d619537cfe252a1760d": {"categories": ["/Categories/Geology", "/Categories/Land cover/Forest/Deciduous Forest"]}},{"9ced00fdce3e4b20bb4b05155acbe817":{"categories": []}}]
Description
The update
operation allows an item owner or organization administrator to update, in bulk, the item's content categories. A maximum of 100 items can be bulk updated per request.
Request Parameters
Parameter | Details |
---|---|
| A JSON array of item objects, where each item is specified by its item ID. When updating the item's content categories, the item object should contain a Example:
|
| The response format. The default format is Values: |
Response Properties
Property | Details |
---|---|
| An array of JSON objects, one for each item requested. Each object is made up of the Example:
|
JSON Response Syntax
{
"results": [
{
"itemId": "<itemId1>",
"success": true | false
},
{
"itemId": "<itemId2>",
"success": true | false,
"error": {
"code": <error code>,
"message": "<error message>"
}
},
{
"itemId": "<itemId3>",
"success": true | false
}
]
}
JSON Response Example
{
"results": [
{
"itemId": "9ced00fdce3e4b20bb4b05155acbe817",
"success": true
},
{
"itemId": "c3ad4ed8bcf04d619537cfe252a1760d",
"success": false,
"error": {
"code": 400,
"message": "Item exceeds max size of 20 categories."
}
},
{
"itemId": "2678d3002eea4e4a825e3bdf10016e61",
"success": true
}
]
}