put
https://api.duodeal.app/api/price-categories/
Updates an existing price category by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Price category unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Category name |
byDefault | boolean | No | Set as default price category |
tax | object | No | Associated tax: {"id": <tax_id>} or null to remove |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Price category unique identifier |
name | string | Category name |
byDefault | boolean | Whether this is the default price category |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Price category successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Price category not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
