Menu
Get All Children
Get a hierarchy's children
GET
/pcm/hierarchies/{hierarchyID}/childrenUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get All Children action (under PIM).
- Fill in the fields below, then reference the result from later steps as
{{getAllChildren.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getAllChildren.response.data.<field>}}.
{
"data": [
{
"id": "string",
"type": "node",
"attributes": {
"name": "string",
"description": "string",
"slug": "string",
"curated_products": [
"string"
],
"admin_attributes": {
"cost_of_goods": "42.0",
"charge_type": "credit card"
},
"shopper_attributes": {
"cost_of_goods": "42.0",
"charge_type": "credit card"
},
"locales": {}
},
"relationships": {
"children": {
"data": [
null
],
"links": {
"related": "string"
}
},
"parent": {
"data": {
"type": "node",
"id": "string"
}
},
"products": {
"data": [
null
],
"links": {
"related": "string"
}
}
},
"meta": {
"sort_order": 0,
"created_at": "2020-09-22T09:00:00.000Z",
"updated_at": "2020-09-22T09:00:00.000Z",
"parent_name": "string",
"owner": "store",
"has_children": false,
"hierarchy_id": "string",
"breadcrumbs": [
{
"id": "string",
"name": "string",
"slug": "string",
"locales": {}
}
]
}
}
],
"meta": {
"results": {
"total": 30
}
},
"links": {
"current": "/pcm/hierarchies?page[offset]=10&page[limit]=10",
"first": "/pcm/hierarchies?page[offset]=0&page[limit]=10",
"last": "/pcm/hierarchies?page[offset]=20&page[limit]=10",
"next": "/pcm/hierarchies?page[offset]=10&page[limit]=10",
"prev": "/pcm/hierarchies?page[offset]=8&page[limit]=10"
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?