Menu
Update Pricebook
Update a Price Book by ID
PUT
/pcm/pricebooks/{pricebookID}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Update Pricebook action (under Price Books).
- Fill in the fields below, then reference the result from later steps as
{{updatePricebook.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"id": "4c45e4ec-26e0-4043-86e4-c15b9cf985a7",
"type": "pricebook",
"attributes": {
"description": "This is a price book",
"name": "pricebook-store-abc",
"external_ref": "external-ref"
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{updatePricebook.response.data.<field>}}.
{
"data": {
"id": "4c45e4ec-26e0-4043-86e4-c15b9cf985a7",
"type": "pricebook",
"attributes": {
"name": "Standard Price Book",
"created_at": "2020-09-22T09:00:00Z",
"updated_at": "2020-09-22T09:00:00Z",
"external_ref": "an-external-ref",
"description": "This is a test price book"
},
"meta": {
"owner": "store"
}
},
"links": {
"self": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7"
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?