Menu
List Attached Custom Relationship
Get all Custom Relationships attached to a Product
GET
/pcm/products/{productID}/custom-relationshipsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the List Attached Custom Relationship action (under PIM).
- Fill in the fields below, then reference the result from later steps as
{{listAttachedCustomRelationship.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": [
{
"slug": "string",
"type": "custom-relationship"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{listAttachedCustomRelationship.response.data.<field>}}.
{
"data": [
{
"id": "string",
"type": "custom-relationship",
"attributes": {
"name": "Related Products",
"slug": "CRP_related_products",
"description": "A list of related products shown on the PDP.",
"sort_order": 5,
"external_name": "Similar items to consider",
"external_description": "Check out these similar products that may also meet your needs or match your preferences.",
"bi_directional": false
},
"meta": {
"owner": "store",
"timestamps": {
"created_at": "2024-01-10T20:16:35.343Z",
"updated_at": "2024-01-10T20:16:35.343Z"
}
}
}
],
"meta": {
"results": {
"total": 30
}
},
"links": {
"first": "/pcm/custom_relationships?page[offset]=0&page[limit]=10",
"last": "/pcm/custom_relationships?page[offset]=20&page[limit]=10",
"next": "/pcm/custom_relationships?page[offset]=10&page[limit]=10",
"prev": "/pcm/custom_relationships?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?