Skip To Content

/unshare: Unshare Item (as item owner)

  • URL:https://[root]/content/users/[userName]/items/[itemID]/unshare(POST only)

Example Usage

URL for Unshare Item

https://www.arcgis.com/sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/unshare
groups=4774c1c2b79046f285b2e86e5a20319e,cc5f73ab367544d6b954d82cc9c6dab7

Description

Stops sharing the item with the specified list of groups (POST only). Available to the user and the administrator of the organization to which the user belongs, if any.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

groups

A comma-separated list of group IDs that should not share the item.

Response Properties

PropertyDetails
notUnsharedFrom

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

itemId

ID of the unshared item.

JSON Response Syntax

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

JSON Response Example

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