PATCH /api/platos/:id
Updates one or both fields of an existing dish. All body fields are optional — include only the fields you want to change.
Authentication: Bearer JWT requiredRequired role:
admin
Request
Path parameters
The dish ID (nanoid format, 10 characters)
Body
At least one field must be provided.New dish name. Maximum 60 characters.
New dish price in BOB (min: 0)
Response
Success (200)
Returns the updatedplatos record.
Dish ID (unchanged)
Updated dish name
Updated price as a decimal string (e.g.
"30.00")Original creation timestamp (ISO 8601)
Timestamp of this update (ISO 8601)
Soft-delete timestamp —
null for active dishesError responses
| Status | Description |
|---|---|
| 400 | Validation error |
| 401 | Unauthorized — missing or invalid JWT |
| 403 | Forbidden — role is not admin |
| 404 | Dish not found or has been deleted |