/move: Move Item

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

Example Usage

URL for Move Item

Use dark colors for code blocksCopy
1
2
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 (move to root folder):

Use dark colors for code blocksCopy
1
folder=/

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

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
   "success": true | false,
   "itemId": "<item id>",
   "owner": "<owner username>",
   "folder": "<folder id>"
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
   "success": true,
   "itemId": "b512083cd1b64e2da1d3f66dbb135956",
   "owner": "jsmith",
   "folder": "1a9ad803da604628b08c968ce602a231"
}

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