Get a Hierarchy Node
GET
Get a Hierarchy Node
https://api.moltin.com/pcm/hierarchies/:hierarchyId/nodes/:nodeId
Retrieves a node from a hierarchy.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
hierarchyId | Required | string | The unique identifier of the hierarchy. |
nodeId | Required | string | The unique identifier of the node in the hierarchy. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token to grant access to the API. |
Request Example
curl -X GET https://api.moltin.com/pcm/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/d167d384-d2cf-4d05-ad41-6fc567855765 \
-H "Authorization: Bearer XXXX" \
Response Example
200 OK
{
"data": {
"type": "node",
"id": "d167d384-d2cf-4d05-ad41-6fc567855765",
"attributes": {
"description": "Electric stoves and ovens",
"name": "Electric Ranges",
"slug": "Electric-Ranges-MA2"
},
"relationships": {
"children": {
"data": [],
"links": {
"related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/d167d384-d2cf-4d05-ad41-6fc567855765/children"
}
},
"parent": {
"data": {
"type": "node",
"id": "e2f3372c-89ed-49ae-a9c7-0dc1888f10ec"
}
},
"products": {
"data": [],
"links": {
"related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/d167d384-d2cf-4d05-ad41-6fc567855765/products"
}
}
}
}
}