Skip To Content

/protect (item): Protect

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

Example Usage

URL for Protect

 https://www.arcgis.com/sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/protect

Description

The Protect operation (POST only) protects the items from deletion. This operation is available to the user and to the administrator of the organization to which the user belongs.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

itemId

The ID of the protected item.

JSON Response Syntax

            {
  "success": true | false,
  "itemId": "<item id>"
}

JSON Response Example

           {
  "success": true,
  "itemId": "b512083cd1b64e2da1d3f66dbb135956"
}