- URL:
- https://[root]/content/users/[userName]/unshareItems
- Methods:
POST
Example Usage
URL for Unshare Items
https://www.arcgis.com/sharing/rest/content/users/jsmith/unshareItems
items=93b54c8930ae46d9a00a7820cb3ebbd1,bb8e3d443ab44878ab8315b00b0612ca
groups=4774c1c2b79046f285b2e86e5a20319e,cc5f73ab367544d6b954d82cc9c6dab7
Description
Unshares a batch of items with the specified list of groups (POST only).
Request Parameters
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
| A comma-separated list of items to be unshared. |
| A comma-separated list of group IDs that should not share the items. |
Response Properties
Property | Details |
---|---|
| An array of JSON objects, one for each item requested. Each object consists of the |
JSON Response Syntax
{"results": [{
"itemId": "<item id>",
"success": true | false,
"notUnsharedFrom": [<groups not able to share with>],
"error": {
"code": code,
"message": "<error message>" }
}]
}
JSON Response Example
{"results": [{
"itemId": "93b54c8930ae46d9a00a7820cb3ebbd1",
"success": true,
"notUnsharedFrom": [],
},
{
"itemId": "bb8e3d443ab44878ab8315b00b0612ca",
"success": false,
"notUnsharedFrom": [],
"error": {
"code": 500,
"message": "Item does not exist or is inaccessible" }
}]
}