- URL:
- https://[root]/content/users/[userName]/items/[itemID]/move
- Methods:
POST
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/<item
.
Available to the user and the administrator of the organization to which the user belongs, if any.
Request Parameters
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
| 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):
Example 2 (move to folder with ID 1a9ad803da604628b08c968ce602a231):
|
Response Properties
Property | Details |
---|---|
| Indicates if the operation was successful. |
| The ID of the moved item. |
| The username of the owner of the item. |
| 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"
}