younifyd
Menu

Update Node Parent

Update a node's parent

PUT/pcm/hierarchies/{hierarchyID}/nodes/{nodeID}/relationships/parent

Use it in a workflow

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

Request

Path parameters

hierarchyIDstringrequired

A unique identifier for the hierarchy.

nodeIDstringrequired

A unique identifier for the node.

Request body

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

dataobjectrequired
idstringrequired

The unique identifier of the new parent node. Must not match the node ID specified in the request path.

typestringrequired

This represents the type of resource object being returned. Always `node`.

One ofnode

json
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "node"
  }
}

Response

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

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

Was this page helpful?