younifyd
Menu

Update Node

Update a node

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

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Update Node action (under PIM).
  3. Fill in the fields below, then reference the result from later steps as {{updateNode.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 node. Must match the node ID specified in the request path.

typestringrequired

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

One ofnode

attributesobjectrequired7 fields
metaobject1 fields
json
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "node",
    "attributes": {
      "name": "string",
      "description": "string",
      "slug": "string",
      "curated_products": [
        "string"
      ],
      "admin_attributes": {
        "cost_of_goods": "42.0",
        "charge_type": "credit card"
      },
      "shopper_attributes": {
        "cost_of_goods": "42.0",
        "charge_type": "credit card"
      },
      "locales": {}
    },
    "meta": {
      "sort_order": 0
    }
  }
}

Response

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

dataobject
idstringrequired

The unique identifier of a node.

typestringrequired

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

One ofnode

attributesobjectrequired7 fields
relationshipsobjectrequired3 fields

Relationships allow you to move between requests. Includes links to the child nodes and products associated with a hierarchy or node.

metaobjectrequired8 fields
json
{
  "data": {
    "id": "string",
    "type": "node",
    "attributes": {
      "name": "string",
      "description": "string",
      "slug": "string",
      "curated_products": [
        "string"
      ],
      "admin_attributes": {
        "cost_of_goods": "42.0",
        "charge_type": "credit card"
      },
      "shopper_attributes": {
        "cost_of_goods": "42.0",
        "charge_type": "credit card"
      },
      "locales": {}
    },
    "relationships": {
      "children": {
        "data": [
          null
        ],
        "links": {
          "related": "string"
        }
      },
      "parent": {
        "data": {
          "type": "node",
          "id": "string"
        }
      },
      "products": {
        "data": [
          null
        ],
        "links": {
          "related": "string"
        }
      }
    },
    "meta": {
      "sort_order": 0,
      "created_at": "2020-09-22T09:00:00.000Z",
      "updated_at": "2020-09-22T09:00:00.000Z",
      "parent_name": "string",
      "owner": "store",
      "has_children": false,
      "hierarchy_id": "string",
      "breadcrumbs": [
        {
          "id": "string",
          "name": "string",
          "slug": "string",
          "locales": {}
        }
      ]
    }
  }
}

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