/unshare: Unshare Item (as item owner)

URL:
https://[root]/content/users/[userName]/items/[itemID]/unshare
Methods:
POST

Example Usage

URL for Unshare Item

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

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": "b512083cd1b64e2da1d3f66dbb135956"
}

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