Get a Productʼs Nodes
GET
Get a Productʼs Nodes
https://api.moltin.com/pcm/products/:productId/nodes
Retrieves the nodes that are associated with the specified product.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
productId | Required | string | The unique identifier of the product. |
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/products/14e055d0-eebb-4090-8594-a0a7aeea2151/nodes \
-H "Authorization: Bearer XXXX" \
Response Example
200 OK
{
"data": [
{
"type": "node",
"id": "de3c3590-4138-4943-b04d-d7b7dc48fa54",
"attributes": {
"description": "Gas stoves and ovens",
"name": "Gas Ranges",
"slug": "Gas-Ranges-MA2"
},
"relationships": {
"children": {
"data": [],
"links": {
"related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/de3c3590-4138-4943-b04d-d7b7dc48fa54/children"
}
},
"products": {
"data": [],
"links": {
"related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/de3c3590-4138-4943-b04d-d7b7dc48fa54/products"
}
}
}
}
]
}