# Time

Log, read and change worklogs, read week grids and timesheets, and submit your own timesheets.

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

## Today's total and target, the current period's total and capacity, and the logging streak

`GET /me/time-summary`

- Operation ID: `getMyTimeSummary`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-08

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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 member's own summary. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's team for the timesheet period containing the date — approvers only

`GET /projects/{projectKey}/team-periods/{date}`

- Operation ID: `getTeamPeriod`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-06

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One row per project member with total, capacity and the sheet. | 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 timesheet period containing the date — the member's worklog grid across projects

`GET /time/periods/{date}`

- Operation ID: `getWeekGrid`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-01

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `date` | path | string (date) | yes | Any date of the wanted period (the catalogue's periodStart is accepted as such). |
| `memberId` | query | string (uuid) | no | Another member's grid, for approvers and all-entries viewers. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The period with rows, totals, capacity and the member's timesheets of the period. | 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` |

## Timesheets by member, project, state and period — the Approvals panel and approval queues

`GET /timesheets`

- Operation ID: `listTimesheets`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-04

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `filter` | query | object | no | filter[memberId]=me\|<id>, filter[projectKey], filter[state]=draft,submitted,approved,returned, filter[periodFrom], filter[periodTo]. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Timesheets, newest period first. | 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` |

## One timesheet, with its revisions and decisions on include=revisions

`GET /timesheets/{timesheetId}`

- Operation ID: `getTimesheet`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-04

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The timesheet and, when asked, its history. | 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` |

## Submit the sheet for approval, freezing a revision

`POST /timesheets/{timesheetId}/submit`

- Operation ID: `submitTimesheet`
- Call with: Personal access token, ability `time:write`
- Feature: F-TIM-04

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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. |
| `timesheetId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The sheet, Submitted, with its new revision number. | 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` |

## The member takes back a submission before any decision

`POST /timesheets/{timesheetId}/withdraw`

- Operation ID: `withdrawTimesheet`
- Call with: Personal access token, ability `time:write`
- Feature: F-TIM-04

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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. |
| `timesheetId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The sheet, Draft again, with the withdrawal in its decisions. | 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` |

## The worklogs behind one grid cell (member, date and row), or the caller's worklogs of a range of dates

`GET /worklogs`

- Operation ID: `listWorklogs`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `filter` | query | object | yes | A range (F-TIM-03.R11): filter[from] and filter[to], both included, at most 62 days, the caller's own worklogs only (filter[memberId] absent or me); no filter[date] and no row with a range. A cell: filter[memberId] (default me), filter[date], filter[ticketKey] or filter[categoryId] with filter[projectKey]. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Worklogs oldest first with their affordances; a range in the order (date, start time with untimed entries last, id). | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Log time for the signed-in member on a ticket or a category

`POST /worklogs`

- Operation ID: `logTime`
- Call with: Personal access token, ability `time:write`
- Feature: F-TIM-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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): `WorklogCreateRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The worklog with its timesheet. | 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` |

## Delete a worklog (clear)

`DELETE /worklogs/{worklogId}`

- Operation ID: `clearWorklog`
- Call with: Personal access token, ability `time:write`
- Feature: F-TIM-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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. |
| `worklogId` | path | string (uuid) | yes |  |
| `reason` | query | string | no | Required for an approver's change of a submitted sheet (1–500 characters). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Cleared. |  |  |
| 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` |

## One worklog as the caller reads it, with its ETag (G230 — the target read of the assistant's change and delete of an entry)

`GET /worklogs/{worklogId}`

- Operation ID: `getWorklog`
- Call with: Personal access token, ability `time:read`
- Feature: F-TIM-03

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

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

## Change a worklog's duration, note, date within its period, or subject (another ticket, a category or another project — R12)

`PATCH /worklogs/{worklogId}`

- Operation ID: `editWorklog`
- Call with: Personal access token, ability `time:write`
- Feature: F-TIM-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | no | 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. |
| `worklogId` | path | string (uuid) | yes |  |

Request body (application/merge-patch+json, required): `WorklogPatch`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The changed worklog. | 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` |
| 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 closed and announced logging periods that reach the caller in a range

`GET /me/logging-periods`

- Operation ID: `listMyLoggingPeriods`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-13

| 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. |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes | On or after `from`; the range is at most 400 days. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The closed and announced periods that reach the caller, in start order. | application/json | `LoggingPeriods` |
| 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The member's repeat series of time entries (F-TIM-02.R17; XM-960)

`GET /me/time/series`

- Operation ID: `listTimeSeries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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 member's own series, newest start first; a series whose project or ticket the member can no longer log to is missing. | application/json | `object` |
| 403 | 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` |

## Repeat a time entry — every occurrence through the horizon is a real entry (F-TIM-02.R17; XM-960)

`POST /me/time/series`

- Operation ID: `createTimeSeries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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): `WorklogSeriesCreateRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The series; its occurrences are in listWorklogs and the week grid. | application/json | `object` |
| 403 | 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` |
| 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` |

## Delete all entries of a repeat series, or this and the following ones (F-TIM-02.R17; XM-960)

`DELETE /me/time/series/{seriesId}`

- Operation ID: `deleteTimeSeries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `seriesId` | path | string (uuid) | yes |  |
| `scope` | query | string | no | "All entries" (`all`, the default) or "This and following" (`following`, with `from`). "This entry" is editWorklog / clearWorklog on the occurrence. |
| `from` | query | string (date) | no | The first occurrence date that `following` changes or deletes; a date on or before the start is `all`. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

| 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 | 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` |
| 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` |

## Change all entries of a repeat series, or this and the following ones (F-TIM-02.R17; XM-960)

`PUT /me/time/series/{seriesId}`

- Operation ID: `changeTimeSeries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `seriesId` | path | string (uuid) | yes |  |
| `scope` | query | string | no | "All entries" (`all`, the default) or "This and following" (`following`, with `from`). "This entry" is editWorklog / clearWorklog on the occurrence. |
| `from` | query | string (date) | no | The first occurrence date that `following` changes or deletes; a date on or before the start is `all`. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The series after the change — for `following`, the new series that holds the entries from `from`. | 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 | 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` |
| 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` |

## Remove the star of a ticket (F-TIM-02.R15; XM-957)

`DELETE /me/time/starred-tickets/{ticketKey}`

- Operation ID: `unstarTimeTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `ticketKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The shortcuts after the change; a star that is not there changes nothing. | application/json | `object` |
| 403 | 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` |

## Star a ticket for time logging (F-TIM-02.R15; XM-957)

`PUT /me/time/starred-tickets/{ticketKey}`

- Operation ID: `starTimeTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `ticketKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The shortcuts after the change; a ticket already starred changes nothing. | application/json | `object` |
| 403 | 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` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The member's starred and recent tickets for time logging (F-TIM-02.R15, R16; XM-957, XM-958)

`GET /me/time/ticket-shortcuts`

- Operation ID: `getTimeTicketShortcuts`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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 tickets the member can still see and log to; hidden ones are missing. | application/json | `object` |
| 403 | 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` |

## The member opened a ticket — it becomes their most recent ticket (F-TIM-02.R16; XM-958)

`POST /me/time/ticket-visits`

- Operation ID: `recordTimeTicketVisit`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Recorded. |  |  |
| 403 | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The cost and bill rates in force on a date, per subject (view_rates; audited)

`GET /rate-card`

- Operation ID: `getRateCard`
- Call with: Session of the Youniton apps (app only)
- Feature: F-FIN-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. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `asOf` | query | string (date) | no |  |
| `filter[subjectKind]` | query | string | no |  |
| `filter[projectKey]` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 100 rows. | 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 | 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` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The history of rate versions of one subject (view_rates; audited)

`GET /rate-versions`

- Operation ID: `listRateVersions`
- Call with: Session of the Youniton apps (app only)
- Feature: F-FIN-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. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `filter[subjectKind]` | query | string | yes |  |
| `filter[memberId]` | query | string (uuid) | no |  |
| `filter[deliveryRoleId]` | query | string (uuid) | no |  |
| `filter[projectKey]` | query | string | no |  |
| `filter[rateKind]` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of 50 versions, newest effective date first, then newest recorded. | 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 | 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` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Record a rate version for a subject from an effective date, an end, or a correction

`POST /rate-versions`

- Operation ID: `recordRate`
- Call with: Session of the Youniton apps (app only)
- Feature: F-FIN-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): `RateVersionRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The recorded 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One rate version (view_rates; audited)

`GET /rate-versions/{rateVersionId}`

- Operation ID: `getRateVersion`
- Call with: Session of the Youniton apps (app only)
- Feature: F-FIN-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. |
| `rateVersionId` | path | string (uuid) | yes | A rate version's id; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The 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` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The tenant's non-ticket categories (active first, then archived for Admins)

`GET /time/categories`

- Operation ID: `listTimeCategories`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-11

| 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 | Categories in their order. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Save the category list — add, rename, reorder, archive

`PUT /time/categories`

- Operation ID: `replaceTimeCategories`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-11

| 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. |

Request body (application/json, required): `array of TimeCategoryInput`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved list. | application/json | `object` |
| 403 | 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` |
| 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 logging periods of a range in the reader's Team timesheets reach (every state)

`GET /time/logging-periods`

- Operation ID: `listLoggingPeriods`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-13

| 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. |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes | On or after `from`; the range is at most 400 days. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The periods that overlap the range, in start order. | application/json | `LoggingPeriods` |
| 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Close a logging period now, or announce its close for a date (a holder of close_logging_periods, inside the reach)

`POST /time/logging-periods`

- Operation ID: `closeLoggingPeriod`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-13

| 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 | no | The version of the existing period of this kind, start and scope; a different version is `412`. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The period, closed or announced. The change is audited (`time.logging_period_closed` or `time.logging_period_announced`). | 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` |
| 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` |

## The announcements, closes and reopens of the logging periods in the reach, newest first (a holder of close_logging_periods)

`GET /time/logging-periods/history`

- Operation ID: `listLoggingPeriodHistory`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-13

| 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. |
| `cursor` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of 50 rows; `meta.nextCursor` reads the next page. | application/json | `LoggingPeriodHistory` |
| 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` |

## Reopen a closed logging period with a reason

`POST /time/logging-periods/{periodId}/reopen`

- Operation ID: `reopenLoggingPeriod`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-13

| 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. |
| `periodId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The period, reopened. The reopen is audited with its reason (`time.logging_period_reopened`). | 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` |
| 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 time written on behalf of the people in the reader's Team timesheets or on-behalf reach, newest first, 50 a page

`GET /time/on-behalf-log`

- Operation ID: `listOnBehalfLog`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-14

| 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. |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes | On or after `from`; the range is at most 400 days. |
| `cursor` | query | string | no | The `meta.nextCursor` of the previous page. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of rows. | application/json | `OnBehalfLog` |
| 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The people of the actor's log_time_on_behalf reach for the "For" field, by name, 20 a page

`GET /time/on-behalf/people`

- Operation ID: `listOnBehalfPeople`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-14

| 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. |
| `q` | query | string | no | A part of the name, in any case. |
| `cursor` | query | string | no | The `meta.nextCursor` of the previous page. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of people. | application/json | `OnBehalfPeople` |
| 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 reader's projects with a time level, with the minutes and the billable minutes of a period that the level lets the reader read

`GET /time/project-totals`

- Operation ID: `getProjectTotals`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-12

| 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. |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes | On or after `from`; the period is at most 42 days. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The projects (F-TIM-12.R09). A reader with no time level gets no project; a client guest gets 404 (not a guest route). | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The projects where the member may log time (R11), by key, a cursor page with the total

`GET /time/projects`

- Operation ID: `listTimeProjects`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `q` | query | string | no |  |
| `page[size]` | query | integer | no |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of the projects by key; meta.total counts all that match q; links.next while more remain. | 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 | 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` |

## The Time settings in force, any pending version and the next period boundary

`GET /time/settings`

- Operation ID: `getTimeSettings`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-11

| 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 settings; ETag carries the settings version. | application/json | `object` |
| 403 | 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` |

## Change Time settings — period-bound keys from the next boundary, the others at once

`PUT /time/settings`

- Operation ID: `changeTimeSettings`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-11

| 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. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The settings with the pending version, its effective date and any transition period. | application/json | `object` |
| 403 | 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` |
| 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` |

## Dry run — the boundary, the transition period and the consequence sentences of a change

`POST /time/settings/validate`

- Operation ID: `validateTimeSettings`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-11

| 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): `TimeSettingsUpdate`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The consequences; nothing was written. | application/json | `object` |
| 403 | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The people of the reader's Team timesheets reach for a period, with minutes per day, the billable split and the status

`GET /time/team-timesheets`

- Operation ID: `getTeamTimesheets`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-12

| 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. |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes | On or after `from`; the period is at most 42 days. |
| `groupBy` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Each person of the reach once, by name. Every read writes the audit record `time.team_timesheets_read`. | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One person's worklogs of the period (a person of the reader's reach), newest first, 100 a page

`GET /time/team-timesheets/entries`

- Operation ID: `listTeamTimesheetEntries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-12

| 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. |
| `memberId` | query | string (uuid) | yes |  |
| `from` | query | string (date) | yes |  |
| `to` | query | string (date) | yes |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The entries; each drill-down writes the audit record `time.team_timesheets_read`. | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Tickets the member may log time on, for the Log time picker (at most 20)

`GET /time/ticket-candidates`

- Operation ID: `listTimeTicketCandidates`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `q` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Matching tickets, or recently logged ones for an empty query. | 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 | 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` |

## Export the visible worklogs of a range as CSV — streamed up to 100,000 rows, otherwise an operation

`POST /timesheets/export`

- Operation ID: `exportTimesheets`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-10

| 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): `TimesheetExportRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The CSV file (Content-Disposition attachment), UTF-8 with a byte-order mark. | text/csv | `string` |
| 202 | A large export runs as an operation; Location points to it. | 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` |
| 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` |

## Approve the named (latest) revision of a submitted timesheet

`POST /timesheets/{timesheetId}/approve`

- Operation ID: `approveTimesheet`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `timesheetId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The approved timesheet. | 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` |

## Reopen one member's submitted or approved timesheet for filling, with a reason

`POST /timesheets/{timesheetId}/reopen`

- Operation ID: `reopenTimesheet`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `timesheetId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The timesheet, Draft again, with its history kept. | 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` |

## Return a submitted timesheet to its member with a note

`POST /timesheets/{timesheetId}/return`

- Operation ID: `returnTimesheet`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TIM-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. |
| `timesheetId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The returned timesheet. | 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` |
