younifyd
Menu

Detach Nodes

Detach multiple nodes

POST/pcm/products/detach_nodes

Use it in a workflow

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

Request

Request body

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

dataobjectrequired
filterstringrequired

You can apply filters to search for the appropriate products to detach. See [Detach multiple nodes](/docs/api/pxm/products/detach-nodes).

node_idsarray<string>required

A list of node unique identifiers that you want to assign to the products.

json
{
  "data": {
    "filter": "eq(sku,book)",
    "node_ids": [
      "123"
    ]
  }
}

Response

Returns 200 with an object. Read it in later steps with {{detachNodes.response.data.<field>}}.

metaobject
nodes_detachedinteger

Number of nodes dissociated from the products.

nodes_not_foundarray<string>

A list of node unique identifiers that could not be identified.

json
{
  "meta": {
    "nodes_detached": 0,
    "nodes_not_found": [
      "123"
    ]
  }
}

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