API Reference
Report Views
Saved filters and columns for a report.
4 endpoints· Auth: JWT or API Key
get
/api/v1/console/report-views JWT API KeyThe caller's views, optionally on one report (`?report_key=`)
Sortable server-side.
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Query parameters
| ReportKey string | Restrict to one catalogue key — the views a report page offers. |
| 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/report-views" \
-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/report-views JWT API KeySave the filters a report is showing under a name
Filters the report does not honour are refused.
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Request body
application/json
{
"reportKey": "string",
"name": "string",
"filters": {}
}| reportKey string | The catalogue key (`sales-overview`, `labor` …). |
| name string | — |
| filters object | The report's parameters, as its link carries them: `preset`, `from`, `to`, `compare`, `grain`, `sort`, `dir` — each only where the report honours it. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-views" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reportKey": "string",
"name": "string",
"filters": {}
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/report-views/{id} JWT API KeyRename a view, and replace its filters when the body carries them
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"name": "string",
"filters": {}
}| name string | — |
| filters object | Null keeps the stored filters; a map replaces them (validated as on save). |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/report-views/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"filters": {}
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
delete
/api/v1/console/report-views/{id} JWT API KeyDelete (tombstone) a view
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/report-views/{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