/unshare: Unshare Item (as item owner)

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

Example Usage

URL for Unshare Item

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

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

JSON Response example

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close