younifyd
Menu

Update Modifier

Update a modifier

PUT/pcm/variations/{variationID}/options/{optionID}/modifiers/{modifierID}

Use it in a workflow

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

Request

Path parameters

variationIDstringrequired

A unique identifier for the variation.

optionIDstringrequired

A unique identifier for the option.

modifierIDstringrequired

A unique identifier for the modifier.

Request body

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

dataobjectrequired
typestringrequired

This represents the type of resource object being returned. Always `product-variation-modifier`.

One ofproduct-variation-modifier

attributesobjectrequired5 fields
idstringrequired

The unique identifier of the modifier. Must match the modifier ID specified in the request path.

json
{
  "data": {
    "type": "product-variation-modifier",
    "attributes": {
      "type": "commodity_type",
      "value": "string",
      "seek": "string",
      "set": "string",
      "reference_name": "string"
    },
    "id": "00000000-0000-0000-0000-000000000000"
  }
}

Response

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

dataobject
idstring

A unique identifier for a modifier that is generated automatically when a modifier is created.

typestring

This represents the type of resource object being returned. Always `product-variation-modifier`.

One ofproduct-variation-modifier

attributesobject5 fields
metaobject1 fields

The owner of the resource, either `organization` or `store`.

json
{
  "data": {
    "id": "string",
    "type": "product-variation-modifier",
    "attributes": {
      "type": "commodity_type",
      "value": "string",
      "seek": "string",
      "set": "string",
      "reference_name": "string"
    },
    "meta": {
      "owner": "organization"
    }
  }
}

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

Was this page helpful?