Skip to main content

Update a custom relationship

PUT 

https://euwest.api.elasticpath.com/pcm/custom-relationships/:customRelationshipSlug

Updates a custom relationship.

A partial update can be performed, where you specify only the fields that need to be changed.

The custom relationship slug cannot be updated.

Request

Responses

Successfully returns the updated custom relationship

Authorization: http

name: bearerAuthtype: httpscheme: bearer

Request Collapse all
Base URL
https://euwest.api.elasticpath.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "custom-relationship",
    "attributes": {
      "name": "Related Products",
      "description": "A list of related products shown on the PDP.",
      "slug": "CRP_related_products",
      "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
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.