- URL:https://[root]/content/users/[userName]/unshareItems(POST only)
Example Usage
URL for Unshare Items
https://www.arcgis.com/sharing/rest/content/users/jsmith/unshareItems
items=93b54c8930ae46d9a00a7820cb3ebbd1,bb8e3d443ab44878ab8315b00b0612ca
groups=4774c1c2b79046f285b2e86e5a20319e,cc5f73ab367544d6b954d82cc9c6dab7Description
Unshares a batch of items with the specified list of groups (POST only).
Request Parameters
| Parameter | Details | 
|---|---|
| [Common Parameters] | For a complete listing, see Common parameters. | 
| items | A comma-separated list of items to be unshared. | 
| groups | A comma-separated list of group IDs that should not share the items. | 
Response Properties
| Property | Details | 
|---|---|
| results | An array of JSON objects, one for each item requested. Each object consists of the itemId, a success flag to indicate if the item was successfully unshared, and a notUnsharedFrom array with a list of groups from which the item could not be unshared. If an error occurred in unsharing an item, an error object is also returned. | 
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" 
}
  }
]}