For example, the List hierarchies REST API returns the following hierarchies:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 452
IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX
[
{
"id":"6e7dd28fc13b417c5c19d1fb",
"name":"Cost centers",
"description":"Cost center hierarchy",
"version":"v1",
"domain":"International standards",
"confidentiality":"private",
"priority":"Prio1",
"status":"Draft",
"effectiveDate":"2017-04-01",
"approvedOn":"2017-03-01"
},
{
"id":"e3e57e39ea8623f258013c43",
"name":"Profit centers",
"description":"Profit center hierarchy",
"version":"v1"
}
]
The
id
attribute is the ID of the hierarchy, which you require for other hierarchy REST APIs.