Update a Price List

Beta
Updates a price list. Use this endpoint to add, replace, or remove layers.

Authentication

X-Auth-Tokenstring
API account access token.

Path parameters

price_list_idstringRequired

Headers

AcceptstringRequiredDefaults to application/json
Accept header.

Request

This endpoint expects an object.
namestringOptional
The name of the price list.
activebooleanOptional

Whether this price list and its prices are active. Defaults to true.

layerslist of objectsOptional

Controls the fallback price lists assigned to this price list. Behavior depends on the value provided:

  • Omitted — no change to existing layers.
  • Empty array ([]) — removes all layers.
  • Array with items — replaces the current layers with the provided list.

Maximum one item.

Response

dataobject
metaobject
Empty meta object.

Errors

404
Not Found Error
422
Unprocessable Entity Error