- URL:https://[root]/content/users/[userName]/items/[itemID]/reassign(POST only)
Example usage
The following is a sample ArcGIS Online POST request for the reassign operation:
POST /sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/reassign HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
targetUsername=swilson&targetFolderName=County Maps&f=pjson
The following is a sample ArcGIS Enterprise POST request for the reassign operation:
POST /webadaptor/sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/reassign HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
targetUsername=swilson&targetFolderName=County Maps&f=pjson
Description
The reassign operation allows the administrator of an organization to reassign a member's item to another member of the organization.
Note:
If the sharing level of the item is private, the receiving member must have sharing access to all groups which the item is currently shared to.
Request parameters
Parameter | Details |
---|---|
[Common Parameters] | For a complete listing, see Common parameters. |
targetUsername | The target username of the new owner of the item. Example
|
targetFolderName | The destination folder for the item. If the item is to be moved to the root folder, specify the value as "/" (forward slash). If the target folder doesn't exist, it will be created automatically. Example
|
Response properties
Property | Details |
---|---|
success | Indicates if the operation was successful. |
itemId | The ID of the reassigned item. |
JSON Response syntax
{
"success": true | false,
"itemId": "<item id>"
}
JSON Response example
{
"success": true,
"itemId": "b512083cd1b64e2da1d3f66dbb135956"
}