Skip To Content

/moveItems: Move Items

  • URL:https://[root]/content/users/[userName]/moveItems(POST only)

Example usage

URL for Move Items

https://www.arcgis.com/sharing/rest/content/users/jsmith/moveItems
items=93b54c8930ae46d9a00a7820cb3ebbd1,bb8e3d443ab44878ab8315b00b0612ca
folder=1a9ad803da604628b08c968ce602a231

Description

Moves a batch of items from their current folder to the specified target folder.

Request parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

items

A comma-separated list of items to be moved.

folder

The destination folder for the items. If the items are to be moved to the root folder, specify the value as "/" (forward slash).

Response properties

PropertyDetails
results

An array of JSON objects, one for each item requested. Each object is made up of the itemId and a success flag to indicate if the item was successfully moved. If an error occurred in moving an item, an error object is also returned.

JSON Response syntax


{
  "results": [
    {
      "itemId": "<item  id>",
      "success": true | false,
      "error": {
        "code": code,
        "message": "<error message>"
      }
    }
  ]
}

JSON Response example


{
  "results": [
    {
      "itemId": "93b54c8930ae46d9a00a7820cb3ebbd1",
      "success": true,
    },
    {
      "itemId": "bb8e3d443ab44878ab8315b00b0612ca",
      "success": false,
      "error": {
        "code": 500,
        "message": "Item already exists in target folder"
      }
    }
  ]
}