Update a price list
PATCH/api/price-lists/{id}
- pricelist.edit: allows to update resources.
Here the dedicated support page.
Request
Path Parameters
Possible values: Value must match regular expression [0-9]+
The ID of the price list to update
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
ID of the client to associate with this price list
Possible values: <= 255 characters
The price list name
Possible values: <= 50 characters
The price list description
The date from which the price list is available. This follows the YYYY-MM-DD format
The date until which the price list is available. This follows the YYYY-MM-DD format
Whether this price list is the default for the client
Whether this price list is synced with the company default costs
Responses
- 200
- 400
- 401
- 403
- 404
Returns the price list updated.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The unique identifier of the resource
The date and time when the resource was created
The date and time when the resource was last updated
The price list name
The price list description
The date from which the price list is available. This follows the YYYY-MM-DD format
The date until which the price list is available. This follows the YYYY-MM-DD format
Whether this is the default price list for the client
Whether this is the default price list for the company
Whether to sync costs with company default price list
Possible values: >= 1
ID of the client to associate with this employee
{
"id": 1,
"created_at": "2025-09-18T11:10:23.759Z",
"updated_at": "2025-09-18T11:10:23.759Z",
"name": "string",
"description": "string",
"available_from": "2025-09-18",
"available_to": "2025-09-18",
"is_default_for_client": true,
"is_default_for_company": true,
"uses_default_price_list_costs": true,
"client_id": 1
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "not_found",
"message": "string"
}