API Reference
Dining Areas
/api/v1/console/pos/dining-areas JWT API KeyThe branch's dining areas, in display order
`active` is a tri-state filter, not an `includeInactive` flag: a deactivated area still groups tables that carry history and must stay listable, editable and re-enablable. A tombstoned one is invisible to every value of it.
- Capability
view_floor- API key scope
cap:view_floor(the key's owner must also hold the capability)
Query parameters
| Active boolean | Null lists both; `true` only the live floor; `false` only the retired ones. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/pos/dining-areas JWT API KeyCreate an area
Writes one `CREATE_DINING_AREA` audit row.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Request body
{
"name": "string",
"sortOrder": 0
}| name string | — |
| sortOrder integer (int32) | Display order on the floor board. Ties break on name, so a flat 0 is fine. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"sortOrder": 0
}'Request body (JSON)
Headers
/api/v1/console/pos/dining-areas/{id} JWT API KeyRename, re-sort or deactivate an area
Writes one `UPDATE_DINING_AREA` row.
This route is what closes item 24. The reference shipped the action, gated it, audited it — and no screen ever imported it, so an area could be created and then never renamed, re-sorted or turned off from anywhere in the product.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"sortOrder": 0,
"active": false
}| name string | — |
| sortOrder integer (int32) | — |
| active boolean | Withdraws the area from the pickers while leaving every table that names it resolvable (ARCH-051). It is <b>not</b> a delete and does not hide the area's tables — a table's own `active` flag is what decides whether it is bookable. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"sortOrder": 0,
"active": false
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/pos/dining-areas/{id} JWT API KeyRetire an area
A tombstone with a required reason, never a hard delete.
Tables still grouped under it are neither blocked nor orphaned: the floor board resolves each table's group against the live area list, so they surface in the "unassigned" catch-all already specifies. Making the retirement conditional on re-homing every table would instead strand an owner behind an area they cannot remove.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers