Skip To Content
ArcGIS Developer
Dashboard

/unshare: Unshare Item (as group admin)

  • URL:https://[root]/content/items/[itemID]/unshare(POST only)
  • Required Capability:Group Owner | Administrator

Example Usage

URL for Unshare Item

https://www.arcgis.com/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/unshare
groups=bf51aa6e879e4676b683dcbefb0ab0a9,cc5f73ab367544d6b954d82cc9c6dab7

Description

Unshares a public or org item with groups that the calling user owns or administers. For the items owned by the user, this Unshare Item resource works the same as user Unshare Item.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

groups

A comma-separated list of group IDs with which you want to stop sharing the item.

Response Properties

PropertyDetails
notUnsharedFrom

Array of groups from which the item could not be unshared.

itemId

ID of the shared item.

JSON Response Syntax

{
  "notUnsharedFrom": [<groups not able to unshare from>],
  "itemId": "<item id>"
}

JSON Response Example

{
  "notUnsharedFrom": [cc5f73ab367544d6b954d82cc9c6dab7],
  "itemId": "af01df44bf36437fa8daed01407138ab"
}