API Reference

Dining Areas

4 endpoints· Auth: JWT or API Key
get/api/v1/console/pos/dining-areas JWT API Key

The 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/pos/dining-areas JWT API Key

Create 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

application/json
{
  "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

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/pos/dining-areas/{id} JWT API Key

Rename, 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

application/json
{
  "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

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/pos/dining-areas/{id} JWT API Key

Retire 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

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/pos/dining-areas/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu