API Reference

Regions

4 endpoints· Auth: JWT or API Key
get/api/v1/console/regions JWT API Key

The regions of the organisations this principal can see

Capability
manage_org
API key scope
cap:manage_org (the key's owner must also hold the capability)

Query parameters

IncludeDeleted
boolean
—
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/regions" \
  -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/regions JWT API Key

Create a region under the caller's own organisation

No `organizationId` in the body:'s "reject a missing organisation id" and "reject an unknown organisation" become impossible rather than guarded once the tier comes from the principal.

Capability
manage_org
API key scope
cap:manage_org (the key's owner must also hold the capability)

Request body

application/json
{
  "name": "string",
  "nameAr": "string"
}
name
string
—
nameAr
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/regions" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/regions/{id} JWT API Key

Rename a region

Capability
manage_org
API key scope
cap:manage_org (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "nameAr": "string"
}
name
string
—
nameAr
string
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/regions/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/regions/{id} JWT API Key

Retire a region

A tombstone with a mandatory reason, and refused while branches are still in it. The alternative — clearing `Branch.regionId` on the caller's behalf — writes to rows they did not name and may not be able to see.

Capability
manage_org
API key scope
cap:manage_org (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/regions/{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