younifyd
Menu

Detach Custom Relationships

Delete Custom Relationships from a Product

DELETE/pcm/products/{productID}/custom-relationships

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Detach Custom Relationships action (under PIM).
  3. Fill in the fields below, then reference the result from later steps as {{detachCustomRelationships.response.data}}.

Request

Path parameters

productIDstringrequired

A unique identifier for the product.

Request body

Enter the body as JSON in the step's Body field.

dataarray<object>required
slugstringrequired

The slug of the custom relationship.

typestringrequired

This represents the type of resource. Always `custom-relationship`.

One ofcustom-relationship

json
{
  "data": [
    {
      "slug": "string",
      "type": "custom-relationship"
    }
  ]
}

Response

Returns 204 with a any. Read it in later steps with {{detachCustomRelationships.response.data.<field>}}.

Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.

Detach Custom Relationships — Elastic Path — Documentation