Get all Hierarchies
GET
Get all Hierarchies
https://api.moltin.com/pcm/hierarchies
Retrieves a list of all hierarchies.
Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Example
curl -X GET https://api.moltin.com/pcm/hierarchies \
-H "Authorization: Bearer XXXX" \
Response Example
200 OK
{
"data": [
{
"type": "hierarchy",
"id": "0e119de2-5fb0-4bca-9b84-b3fc6c903007",
"attributes": {
"description": "Free standing appliances",
"name": "Major Appliances",
"slug": "Major-Appliances-MA0"
},
"relationships": {
"children": {
"data": [],
"links": {
"related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/children"
}
}
}
},
{
"type": "hierarchy",
"id": "4a5a476e-f28d-491f-95d7-86e53f05daf9",
"attributes": {
"description": "Counter-top appliances",
"name": "Small Appliances",
"slug": "Small-Appliances-SA0"
},
"relationships": {
"children": {
"data": [],
"links": {
"related": "/hierarchies/4a5a476e-f28d-491f-95d7-86e53f05daf9/children"
}
}
}
}
]
}