Menu
Create Modifier
Create a modifier
POST
/pcm/variations/{variationID}/options/{optionID}/modifiersUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create Modifier action (under PIM).
- Fill in the fields below, then reference the result from later steps as
{{createModifier.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"type": "product-variation-modifier",
"attributes": {
"type": "commodity_type",
"value": "string",
"seek": "string",
"set": "string",
"reference_name": "string"
}
}
}
Response
Returns 201 with an object. Read it in later steps with {{createModifier.response.data.<field>}}.
{
"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?