Send an HTTP PUT request to the resource /v3/directories/tcdirectories to create a new thin client directory.

This request must contain JSON data in its body specifying a name for the new directory. The parentID is optional and defaults to the root thin client directory:

{

"name":"My Directory",

"parentID":"-1"

}

cURL accepts JSON data as the --data parameter. This request also specifies Content-type header to tell IMI that the data has the type application/json.

Use it whenever you send JSON data:

curl \

--request PUT \

--header 'Cookie: JSESSIONID=3FB2F3F6A089FE9029DFD6DAFEF146DC' \

--header "Content-type: application/json" \

--data '{"name":"My Directory", "parentID":"-1"}' \

https://[server]:8443/umsapi/v3/directories/tcdirectories

Response

IMI replies with a success message and data about the newly created directory:

{

"message": "Directory successfully inserted.",

"id": "77118",

"name": "My Directory",

"parentID": "-1"

}