/unshare: Unshare Item (as group admin)

URL:
https://[root]/content/items/[itemID]/unshare
Methods:
POST
Required Capability:
Group Owner | Administrator

Example Usage

URL for Unshare Item

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

Use dark colors for code blocksCopy
1
2
3
4
{
  "notUnsharedFrom": [<groups not able to unshare from>],
  "itemId": "<item id>"
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
{
  "notUnsharedFrom": [cc5f73ab367544d6b954d82cc9c6dab7],
  "itemId": "af01df44bf36437fa8daed01407138ab"
}

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