# Reports & dashboards

Saved reports, report runs and schedules, and the dashboard.

0 operation(s) for tokens, 34 app-only. The full schemas are in [openapi.json](https://docs.youniton.com/openapi.json) (search the operation ID).

## The member's home — counts, My work, the pinned panel and Needs attention, all under the member's access

`GET /dashboard`

- Operation ID: `getDashboard`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WSP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The Dashboard read model. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The full Needs attention list — over-estimate and approval-pending tickets in the member's scope

`GET /dashboard/needs-attention`

- Operation ID: `listNeedsAttention`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WSP-07

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 25 with the total. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The caller's own deliveries, newest first

`GET /me/report-deliveries`

- Operation ID: `listMyReportDeliveries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 25 deliveries with their files while they live. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |

## One run of the caller — state, columns, totals and notices

`GET /report-runs/{reportRunId}`

- Operation ID: `getReportRun`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `reportRunId` | path | string (uuid) | yes | A run's id; another reader's run and a missing one are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The run. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Download a finished run of the caller as CSV, written from the stored result

`POST /report-runs/{reportRunId}/export`

- Operation ID: `exportReportRun`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-04

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `reportRunId` | path | string (uuid) | yes | A run's id; another reader's run and a missing one are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The CSV file (Content-Disposition attachment), UTF-8 with a byte-order mark; the notices in X-Kanso-Report-Notices. | text/csv | `string` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The rows of a finished run in the result's order, up to 100 a page

`GET /report-runs/{reportRunId}/rows`

- Operation ID: `listReportRunRows`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `reportRunId` | path | string (uuid) | yes | A run's id; another reader's run and a missing one are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `page[size]` | query | integer | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of rows. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Delete a schedule and its delivery records

`DELETE /report-schedules/{reportScheduleId}`

- Operation ID: `deleteReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Deleted. |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One schedule

`GET /report-schedules/{reportScheduleId}`

- Operation ID: `getReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The schedule (ETag is its version). | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change the cadence, the period or the recipients

`PATCH /report-schedules/{reportScheduleId}`

- Operation ID: `updateReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |

Request body (application/json, required): `ReportSchedulePatch`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The schedule. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The deliveries of a schedule with their states (its editors), newest first

`GET /report-schedules/{reportScheduleId}/deliveries`

- Operation ID: `listReportScheduleDeliveries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 50 deliveries; another recipient's file id is never included. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Pause a schedule

`POST /report-schedules/{reportScheduleId}/pause`

- Operation ID: `pauseReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The paused schedule. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Resume a paused or suspended schedule when its cause is gone

`POST /report-schedules/{reportScheduleId}/resume`

- Operation ID: `resumeReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `reportScheduleId` | path | string (uuid) | yes | A schedule's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The active schedule with its next occurrence. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The fact-source catalogue with the reader's availability per source and measure

`GET /reports/catalogue`

- Operation ID: `getReportCatalogue`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-01

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The catalogue version and its sources. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The headline figure of each catalogue source that the reader may use (the Reports landing's catalogue panels)

`GET /reports/catalogue/summary`

- Operation ID: `getReportCatalogueSummary`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-01

XM-955 (G-RPT-01): per source, its headline measure in the current period and in the period before (the change in whole per cent) and up to 12 weekly points, each computed as the reader's own synchronous run (the same visibility, time level and money rules); only totals leave; nothing is stored. A source the reader cannot use is left out; a withheld total is absent. The estimates source is a snapshot: logged of estimate in per cent, no previous period and no points.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The figures in the catalogue's order. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The values of an entity dimension that the reader's own facts hold for the builder's definition (the Filters bar)

`POST /reports/dimension-values`

- Operation ID: `listReportDimensionValues`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-01

XM-1269 (G-RPT-05, G-RPT-09): the builder's definition (its source, period and other filters) planned and computed in the reader's own context with the one dimension, exactly as a synchronous run of the reader; only labelled values leave (a hidden value, a small group or a former member is never named); nothing is stored. `q` keeps the labels that hold the text. At most 50, in label order; `capped` when more matched.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

Request body (application/json, required): `object`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The values, each its id (the filter's value) and its label. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The effective limits of the report engine and the usage the caller may know

`GET /reports/limits`

- Operation ID: `getReportLimits`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-06

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The limits; the tenant counts are zero for a caller who is not an Admin. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Run a definition in the caller's own access — the result at once, or an operation for a large run

`POST /reports/runs`

- Operation ID: `runReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

Request body (application/json, required): `ReportRunRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The finished run (Location /api/v1/report-runs/{id}); its rows are read page by page. | application/json | `object` |
| 202 | A large run continues in the background; the run in state running with its operationId (Location names the operation). | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The logged time of the current and the previous timesheet week as the reader's own worklogs report (the Reports sidebar)

`GET /reports/this-week`

- Operation ID: `getReportsThisWeek`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The two weeks' totals, or `available` false. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Validate a definition, resolve its period and estimate its size; returns no data

`POST /reports/validate`

- Operation ID: `validateReportDefinition`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-01

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

Request body (application/json, required): `ReportRunRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The validation; valid is false with field errors when the definition is invalid. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The caller's own reports and the shared reports the caller can open

`GET /saved-reports`

- Operation ID: `listSavedReports`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `filter[scope]` | query | string | no |  |
| `filter[state]` | query | string | no | `any` lists both states in one list (XM-1266; the designed grid shows a State column). |
| `filter[source]` | query | string | no | One source key or several, separated by commas (XM-1266). |
| `filter[sharing]` | query | string | no | One sharing level or several, separated by commas (XM-1266; the designed "Shared with" filter). |
| `filter[owner]` | query | string | no | The reports of these owners (member ids, separated by commas, at most 50; XM-1266; the designed Owner filter "is"). |
| `filter[notOwner]` | query | string | no | The reports of every owner except these (member ids, separated by commas, at most 50; XM-1266; the Owner filter "is not"). |
| `q` | query | string | no |  |
| `sort` | query | string | no | The order (XM-1266). A cursor page takes only `-updatedAt`; every other order needs `page[number]`. `owner` orders by the owner's display name ("Former member" for a removed owner); each order ends on the id. |
| `page[number]` | query | integer | no | An offset page (XM-1266; the designed grid's page numbers); not with `page[cursor]`. |
| `page[size]` | query | integer | no | The rows of an offset page (the designed "Rows per page"). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 25 reports, newest change first (a cursor page); or an offset page (`page[number]`) in `sort` with its total, the counts of the segments and the owners of the scope (XM-1266). | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Save a definition as a new report, version 1

`POST /saved-reports`

- Operation ID: `createSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

Request body (application/json, required): `SavedReportCreateRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The saved report. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Delete a report with its versions and schedules

`DELETE /saved-reports/{savedReportId}`

- Operation ID: `deleteSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Deleted. |  |  |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One saved report with its current definition and what the caller may do

`GET /saved-reports/{savedReportId}`

- Operation ID: `getSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The report (ETag is its version). | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Rename a report or change its description

`PATCH /saved-reports/{savedReportId}`

- Operation ID: `updateSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json, required): `SavedReportPatch`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The report. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Archive a report and suspend its schedules

`POST /saved-reports/{savedReportId}/archive`

- Operation ID: `archiveSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The archived report. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Make a personal copy of a report the caller can open

`POST /saved-reports/{savedReportId}/duplicate`

- Operation ID: `duplicateSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json): `SavedReportDuplicateRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The copy, owned by the caller. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Restore an archived report

`POST /saved-reports/{savedReportId}/restore`

- Operation ID: `restoreSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The active report; its schedules stay suspended. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Run a saved report in the caller's own access, optionally with another period or an earlier version

`POST /saved-reports/{savedReportId}/runs`

- Operation ID: `runSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json): `SavedReportRunRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The finished run. | application/json | `object` |
| 202 | A large run continues in the background; the run in state running with its operationId. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The schedules of a saved report (its editors)

`GET /saved-reports/{savedReportId}/schedules`

- Operation ID: `listReportSchedules`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The schedules, at most 20. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Schedule a saved report for recipients

`POST /saved-reports/{savedReportId}/schedules`

- Operation ID: `createReportSchedule`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json, required): `ReportScheduleRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The schedule with its next occurrence. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Set who may open the report — personal, a team or the tenant

`PUT /saved-reports/{savedReportId}/sharing`

- Operation ID: `setSavedReportSharing`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json, required): `ReportSharingRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The report with its sharing. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Make another internal member the report's owner

`POST /saved-reports/{savedReportId}/transfer`

- Operation ID: `transferSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json, required): `ReportTransferRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The report with its new owner; for a caller who no longer opens it, the report as the transfer left it with every `can` false (R18). | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The versions of a report, newest first

`GET /saved-reports/{savedReportId}/versions`

- Operation ID: `listSavedReportVersions`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 25 versions. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Save a changed definition as the next version

`POST /saved-reports/{savedReportId}/versions`

- Operation ID: `reviseSavedReport`
- Call with: Session of the Youniton apps (app only)
- Feature: F-RPT-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `savedReportId` | path | string (uuid) | yes | A saved report's id; hidden and missing are one 404. |

Request body (application/json, required): `SavedReportRevisionRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The report at its new version. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
