younifyd
Menu

Attach Nodes

Attach multiple nodes

POST/pcm/products/attach_nodes

Use it in a workflow

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

Request

Request body

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

dataobjectrequired
filterstringrequired

Filters applied to search for appropriate products to attach to a node. See [Attach multiple nodes](/docs/api/pxm/products/attach-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 {{attachNodes.response.data.<field>}}.

metaobject
nodes_attachedinteger

Number of nodes assigned to the products.

nodes_not_foundarray<string>

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

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

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

Attach Nodes — Elastic Path — Documentation