Skip To Content

/move: Move Item

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

Example Usage

URL for Move Item

 https://www.arcgis.com/sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/move
folder=1a9ad803da604628b08c968ce602a231

Description

The Move Item operation (POST only) moves the item (link) from the current folder to the specified target folder. Moving an item link does not change the URI of the item itself, which continues to be /content/items/<itemId>.

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.

folder

The destination folder ID for the item. If the item is to be moved to the root folder, specify the value as / (forward slash).

Example 1: folder=/ (move to root folder)

Example 2: folder=1a9ad803da604628b08c968ce602a231 (move to folder with ID 1a9ad803da604628b08c968ce602a231)

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

itemId

The ID of the moved item.

owner

The username of the owner of the item.

folder

The ID of the destination folder where the item was moved.

JSON Response Syntax

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

JSON Response Example

 {
   "success": true,
   "itemId": "b512083cd1b64e2da1d3f66dbb135956",
   "owner": "jsmith",
   "folder": "1a9ad803da604628b08c968ce602a231"
}