Moving a Device Directory
→ In order to move devices or directories send a PUT request to the target directory and append ?operation=move
. The request body must contain a list of API Objects in JSON format, representing the devices and directories to be moved. An API Object has an ID and a type.
curl \
--request PUT \
--header 'Cookie: JSESSIONID=3FB2F3F6A089FE9029DFD6DAFEF146DC' \
--header "Content-type: application/json" \
--data '[ { "id":"77123", "type":"tcdirectory"},\
{ "id":"1234", "type":"tcdirectory" } ]' \
https://[server]:8443/umsapi/v3/directories/tcdirectories/15592?operation=move
Response
The following response contains an error message for one directory and a success message for the other:
200 OK
---
[
{
"id": "1234",
"results": "does_not_exist"
},
{
"id": "77123",
"results": "successful"
}
]