Updating a Device Directory
→ Send an HTTP PUT request to /v3/directories/tcdirectories/[id]
to update the properties of a device directory. The directory ID is passed as a variable in the URL, a new directory name as JSON data in the request body. Do not forget the Content-type
header.
curl \
--request PUT \
--header 'Cookie: JSESSIONID=3FB2F3F6A089FE9029DFD6DAFEF146DC' \
--header "Content-type: application/json" \
--data '{"name":"My Wonderful Directory"}' \
https://[server]:8443/umsapi/v3/directories/tcdirectories/77118
Response
→ IMI replies with a success message:
200 OK
---
{
"message": "Updated directory successfully."
}