# Tickets & boards

Read and change tickets, their comments, boards, backlogs, sprints, epics and labels.

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

## Project activity, newest first, 20 per page, rendered for the caller

`GET /projects/{projectKey}/activity`

- Operation ID: `listProjectActivity`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-24

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Entries; links.next for "Show more". | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The complete active-sprint section and one ranked backlog page of 50; filters narrow the backlog only

`GET /projects/{projectKey}/backlog`

- Operation ID: `getBacklog`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-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 |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no |  |
| `include` | query | string | no | customFields adds the custom-field values the caller may see (F-WRK-27). |
| `columns` | query | string | no | XM-1110 (F-WRK-14.R13, F-WRK-06.R14): the Display-settings columns that the view shows, comma-separated, from the XM-943 list vocabulary (rank, type, epic, status, priority, assignee, reporter, due_date, start_date, estimate, points, labels, sprint, client_visible, created, updated). The rows answer the optional columns reporter, created (createdAt), updated (updatedAt) and sprint, and on a BacklogRow also start_date (startDate) and client_visible (clientVisible), only when the list names them. An unknown id or an empty item is 400 query.invalid at columns. The columns never change the rows. |
| `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 sprint section (first page only) and a backlog page; links.next for the next 50. | 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` |

## The active sprint's columns (or the open tickets with sprints off) with exact counts and the first 100 cards per column

`GET /projects/{projectKey}/board`

- Operation ID: `getBoard`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-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. |
| `projectKey` | path | string | yes |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `sort` | query | string | no | XM-708 (F-WRK-02.R12): the order of the cards in each column or lane cell — rank (the manual order), priority (High first), dueDate (earliest first, none last) or title (A–Z by the first 64 characters); each order ends with the rank. title needs Title and dueDate needs Due date in the reader's mask, else 400 query.invalid naming sort with title_not_visible or due_date_not_visible. |
| `groupBy` | query | string | no | assignee, priority or epic groups the board into swimlanes (F-WRK-04; priority and epic since XM-1099). |

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

## The next page (100 cards) of one board column, under the same filters

`GET /projects/{projectKey}/board/columns/{stageId}`

- Operation ID: `getBoardColumnPage`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-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. |
| `projectKey` | path | string | yes |  |
| `stageId` | path | string (uuid) | yes |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `sort` | query | string | no | XM-708 (F-WRK-02.R12): the order of the cards in each column or lane cell — rank (the manual order), priority (High first), dueDate (earliest first, none last) or title (A–Z by the first 64 characters); each order ends with the rank. title needs Title and dueDate needs Due date in the reader's mask, else 400 query.invalid naming sort with title_not_visible or due_date_not_visible. |
| `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 column page. | 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 next page of swimlanes of the grouped board — by assignee, priority or epic (20 lanes, 25 cards per cell)

`GET /projects/{projectKey}/board/lanes`

- Operation ID: `getBoardLanes`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-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. |
| `projectKey` | path | string | yes |  |
| `groupBy` | query | string | no | The grouping of the lanes (XM-1099); assignee when absent. The cursor binds it. |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `sort` | query | string | no | XM-708 (F-WRK-02.R12): the order of the cards in each column or lane cell — rank (the manual order), priority (High first), dueDate (earliest first, none last) or title (A–Z by the first 64 characters); each order ends with the rank. title needs Title and dueDate needs Due date in the reader's mask, else 400 query.invalid naming sort with title_not_visible or due_date_not_visible. |
| `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 lanes. | 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` |

## Epic panels of one state with progress and the first 50 rows each, 20 panels per page; the shared filters and q narrow the rows (XM-708)

`GET /projects/{projectKey}/epics`

- Operation ID: `listEpics`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-11

| 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 |  |
| `filter[state]` | query | string | no |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Panels; meta.counts holds active and completed. | 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` |

## The project's label vocabulary — the picker's typeahead and the Labels settings list

`GET /projects/{projectKey}/labels`

- Operation ID: `listProjectLabels`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-22

| 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 | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `q` | query | string | no | Name search (prefix and contains, case-insensitive), 1–40 characters. |
| `state` | query | string | no | active (default, the picker) · archived · all (the settings list). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Labels by name, at most 100 a page (20 when q is given); links.next continues the list while more labels follow (R23). | application/json | `ProjectLabelPage` |
| 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 project's sprints with their goal progress (filter by state and date range), newest first

`GET /projects/{projectKey}/sprints`

- Operation ID: `listSprints`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-09

| 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 |  |
| `filter[state]` | query | string | no |  |
| `filter[endsOn][gte]` | query | string (date) | no |  |
| `filter[startsOn][lte]` | query | string (date) | 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 | Sprints, 20 per page. | 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` |

## The generic ticket list of a project — filters, q, whitelisted sort, cursor (the Calendar uses the due-date range)

`GET /projects/{projectKey}/tickets`

- Operation ID: `listProjectTickets`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-14

| 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 |  |
| `filter` | query | TicketListFilterInput | no | The generic ticket list's filters (F-WRK-14.R09; XM-708) — the shared Work filters, filter[stageKind]=todo,in_progress, the due-date range filter[dueDate][gte]=2026-09-28&filter[dueDate][lte]=2026-11-01 (the Calendar, G-WK2-2) and filter[sprint]=active\|none\|<id>. |
| `q` | query | string | no |  |
| `sort` | query | string | no | 1–4 terms from rank, priority (the tenant's priority order, the highest first), dueDate, key, updatedAt, cf.<key>; a - prefix sorts descending. |
| `page[size]` | query | integer | no |  |
| `include` | query | string | no | customFields adds the custom-field values the caller may see (F-WRK-27). |
| `columns` | query | string | no | XM-1110 (F-WRK-14.R13, F-WRK-06.R14): the Display-settings columns that the view shows, comma-separated, from the XM-943 list vocabulary (rank, type, epic, status, priority, assignee, reporter, due_date, start_date, estimate, points, labels, sprint, client_visible, created, updated). The rows answer the optional columns reporter, created (createdAt), updated (updatedAt) and sprint, and on a BacklogRow also start_date (startDate) and client_visible (clientVisible), only when the list names them. An unknown id or an empty item is 400 query.invalid at columns. The columns never change the rows. |
| `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 tickets. | 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` |

## Create a ticket with the project's next key, placed by the entry point (D-077)

`POST /projects/{projectKey}/tickets`

- Operation ID: `createTicket`
- Call with: Personal access token, ability `tickets:write`
- Feature: F-WRK-23

| 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. |
| `projectKey` | path | string | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | Created; Location /api/v1/tickets/{key}; meta.warnings may hold ticket.stage_hidden_from_clients. | 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` |

## The Timeline of one sprint or epic over a week range (D-050), rows by epic and rank with computed bars

`GET /projects/{projectKey}/timeline`

- Operation ID: `getTimeline`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-13

| 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 |  |
| `scope` | query | string | no | sprint:<id>, epic:<id> or (Spec BF-1, F-WRK-31.R13) parent:<ticketKey>; absent means the active sprint. |
| `from` | query | string (date) | no |  |
| `to` | query | string (date) | no |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `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 Timeline page. | 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` |

## The Work frame — active sprint summary, goal, backlog and client-visible counts, assignees in scope, available views

`GET /projects/{projectKey}/work-frame`

- Operation ID: `getWorkFrame`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-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. |
| `projectKey` | path | string | yes |  |
| `filter` | query | WorkFilterInput | no | The filters shared by the Work views (D-071) — filter[assigneeId]=me\|none\|<id> or a comma list of up to 100 of them (any of; XM-708), filter[clientVisible]=true, filter[epicId]=none\|<id>, filter[priority]=high,medium, filter[due]=overdue\|this_week\|next_week\|none — and custom-field filters filter[cf.<key>] with the type's operators (F-WRK-28; 05 §5). Since XM-1166 also the facet operators filter[stage\|label\|epicId\|type][anyOf\|allOf\|noneOf\|empty\|notEmpty] with their negated keys not.<operator>, and filter[title][contains\|not.contains]. |
| `q` | query | string | no | XM-708 (F-WRK-01.R11): the search text of the Work views ("Find a ticket…") — the key exactly or by prefix, the title "contains" from three characters (by prefix below). For a reader whose mask hides Title it matches the key only. 1–120 characters, else 400 query.invalid naming q. |
| `view` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The frame. | 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 sprint with its goal, days left and the epic lines of the Sprint panel

`GET /sprints/{sprintId}`

- Operation ID: `getSprint`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-09

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

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

## The ticket through the caller's mask, with can (the side panel's document)

`GET /tickets/{ticketKey}`

- Operation ID: `getTicket`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-16

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ticket; ETag carries the version; meta.warnings may hold ticket.stage_hidden_from_clients (R09). | 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` |

## Edit ticket fields (JSON Merge Patch with If-Match); custom fields per F-WRK-26

`PATCH /tickets/{ticketKey}`

- Operation ID: `editTicket`
- Call with: Personal access token, ability `tickets:write`
- Feature: F-WRK-22

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ticket after the change; ETag carries the new version; meta.warnings may hold ticket.stage_hidden_from_clients. | 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` |

## One ticket's activity, newest first, 20 per page

`GET /tickets/{ticketKey}/activity`

- Operation ID: `listTicketActivity`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-24

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); 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 | Entries. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The ticket's attachments (comment files included) with Files' live status

`GET /tickets/{ticketKey}/attachments`

- Operation ID: `listTicketAttachments`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-19

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); 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 | Attachments, oldest first, 100 per page; meta.counts holds total and shared. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Comments of both threads (filter[thread]) oldest first

`GET /tickets/{ticketKey}/comments`

- Operation ID: `listTicketComments`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-21

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `filter[thread]` | query | string | 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 | A page of at most 100 comments, oldest first; links.next names the later page while one exists (XM-689). | 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` |

## Post a comment in the internal or the client thread, with files that follow the thread

`POST /tickets/{ticketKey}/comments`

- Operation ID: `postTicketComment`
- Call with: Personal access token, ability `comments:write`
- Feature: F-WRK-21

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The comment. | 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` |

## The merge requests linked to a ticket (read-only projection of Integrations' facts)

`GET /tickets/{ticketKey}/merge-requests`

- Operation ID: `listTicketMergeRequests`
- Call with: Personal access token, ability `tickets:read`
- Feature: F-WRK-20

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Links, most recently changed first (at most 50), with the ticket's exact number of links and `more` when it has more than the listed ones — never a silent cut (XM-213; KDC-07). A reader whose mask hides merge requests gets an empty list, `total` 0 and `more` false. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Move, reorder, plan or unplan a ticket by neighbours (positional; an optional If-Match, idempotent)

`PUT /tickets/{ticketKey}/position`

- Operation ID: `placeTicket`
- Call with: Personal access token, ability `tickets:write`
- Feature: F-WRK-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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `If-Match` | header | string | no | OPTIONAL (R15; register §212; XM-857): the ticket's version in quotes. A different version answers 412 stale-version with currentVersion, and nothing moves; absent compares nothing. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The new placement; ETag carries the version; meta.warnings may hold stage.wip_limit_exceeded and, for a sharing manager who moved a client-visible ticket into a stage hidden from clients, ticket.stage_hidden_from_clients (F-WRK-16.R09). | 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` |

## Move one ticket into an open sprint or back to the backlog (a wrapper of placeTicket with sprint only; If-Match)

`PUT /tickets/{ticketKey}/sprint`

- Operation ID: `moveTicketToSprint`
- Call with: Personal access token, ability `tickets:write`
- Feature: F-WRK-07

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The new placement, as placeTicket answers it; ETag carries 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` |
| 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 ticket's Time section — total and the entries the reader may read

`GET /tickets/{ticketKey}/worklogs`

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

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); 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 | Entry count, total and entries newest 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` |

## Remove a criterion

`DELETE /acceptance-criteria/{criterionId}`

- Operation ID: `removeAcceptanceCriterion`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `criterionId` | path | string (uuid) | yes | A criterion of a ticket that the caller can view; otherwise one 404 (acceptance_criterion.not_found). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed. The rows after it moved up one place. |  |  |
| 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` |

## Change the text of a criterion

`PATCH /acceptance-criteria/{criterionId}`

- Operation ID: `editAcceptanceCriterion`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `criterionId` | path | string (uuid) | yes | A criterion of a ticket that the caller can view; otherwise one 404 (acceptance_criterion.not_found). |

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

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

## Tick or untick a criterion

`PUT /acceptance-criteria/{criterionId}/met`

- Operation ID: `setAcceptanceCriterionMet`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `criterionId` | path | string (uuid) | yes | A criterion of a ticket that the caller can view; otherwise one 404 (acceptance_criterion.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The criterion. A tick of a met criterion keeps the first tick. | 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` |

## Move a criterion after another criterion, or to the top

`PUT /acceptance-criteria/{criterionId}/position`

- Operation ID: `moveAcceptanceCriterion`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `criterionId` | path | string (uuid) | yes | A criterion of a ticket that the caller can view; otherwise one 404 (acceptance_criterion.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The criterion at its new place. | 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` |

## Move an attachment to the trash

`DELETE /attachments/{attachmentId}`

- Operation ID: `removeAttachment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-19

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

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

## Restore a trashed attachment within the retention

`POST /attachments/{attachmentId}/restore`

- Operation ID: `restoreAttachment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-19

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

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

## Switch an attachment between Internal and Shared with client for the current client version

`PUT /attachments/{attachmentId}/sharing`

- Operation ID: `setAttachmentSharing`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-19

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

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

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

## Delete a comment (soft, audited)

`DELETE /comments/{commentId}`

- Operation ID: `deleteComment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-21

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

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

## Edit one's own comment within the tenant's edit window

`PATCH /comments/{commentId}`

- Operation ID: `editComment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-21

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

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

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

## Remove the caller's own reaction with one emoji from a comment (idempotent)

`DELETE /comments/{commentId}/reactions/{emoji}`

- Operation ID: `removeCommentReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-38

| 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. |
| `commentId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The comment as the caller now reads it, with its reactions. | 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` |

## Add the caller's own reaction with one emoji to a comment (idempotent)

`PUT /comments/{commentId}/reactions/{emoji}`

- Operation ID: `addCommentReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-38

| 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. |
| `commentId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The comment as the caller now reads it, with its reactions. | 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` |

## Reopen a resolved top-level comment (F-WRK-21.R19; idempotent)

`POST /comments/{commentId}/reopen`

- Operation ID: `reopenComment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-21

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The comment, open (also when it was open already; then nothing changed). | 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` |

## The replies of a top-level comment, oldest first (F-WRK-21.R16)

`GET /comments/{commentId}/replies`

- Operation ID: `listCommentReplies`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-21

| 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. |
| `commentId` | path | string (uuid) | 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 | A page of at most 100 replies, oldest first; links.next names the later page while one exists. A reply has no replies (an empty page). | 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` |

## Resolve a top-level comment (F-WRK-21.R19; idempotent)

`POST /comments/{commentId}/resolve`

- Operation ID: `resolveComment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-21

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The comment, resolved (also when it was resolved already; then nothing changed). | 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` |

## The member's open tickets across projects by due date — searchable and paged

`GET /me/tickets`

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

| 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 |  |
| `due` | query | string | no |  |
| `filter[projectKey]` | query | string | FacetRulesInput | no | XM-1114 (R07) — a comma list of 1–20 project keys; a key that names no project the member can see matches nothing. XM-1166 G-MT-08 — or an object of operator rules (FacetRulesInput), with at most 20 different keys for all rules. |
| `filter[stageKind]` | query | string | FacetRulesInput | no | XM-1114 (R07) — a comma list of stage kinds (todo, in_progress, in_review, done). XM-1166 G-MT-08 — or an object of operator rules (FacetRulesInput). |
| `filter[priority]` | query | string | FacetRulesInput | no | XM-1114 (R07) — a comma list of 1–20 priority keys of the tenant's vocabulary (XM-1098); an unknown key matches nothing. XM-1166 G-MT-08 — or an object of operator rules (FacetRulesInput). |
| `sort` | query | string | no | XM-1114 (R07) — one of dueDate (the default), priority, updatedAt, key; XM-1171 (G-MT-07) adds title, project, loggedMinutes and stage; a leading `-` for descending. |
| `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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The tenant's priority list, lowest first, for every reader (internal members and client guests)

`GET /priorities`

- Operation ID: `listPriorities`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-40

| 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 | Every entry (archived ones too), the list version and whether the reader may change the list; ETag is the list 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` |

## Save the tenant's priority list (the Admin; the whole list, lowest first, in one Save)

`PUT /priorities`

- Operation ID: `replacePriorities`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-40

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The new list; ETag is the new list 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` |
| 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 people whom the assignee and reporter pickers offer — the project's team and members whom the writes accept (XM-1603; R08)

`GET /projects/{projectKey}/assignees`

- Operation ID: `listProjectAssignees`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-23

| 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. |
| `projectKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The picker's people, in name order. | 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` |

## Create a label in the project's vocabulary

`POST /projects/{projectKey}/labels`

- Operation ID: `createProjectLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The label; ETag carries 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` |
| 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` |

## Rename or recolour a label (If-Match)

`PATCH /projects/{projectKey}/labels/{labelId}`

- Operation ID: `editProjectLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `labelId` | path | string (uuid) | yes | A label of the path's project; another project's or tenant's label is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The label after the change. | 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` |

## Archive a label (idempotent by state)

`POST /projects/{projectKey}/labels/{labelId}/archive`

- Operation ID: `archiveProjectLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `labelId` | path | string (uuid) | yes | A label of the path's project; another project's or tenant's label is one 404 (label.not_found). |

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

## Merge this label into a target label of the same project

`POST /projects/{projectKey}/labels/{labelId}/merge`

- Operation ID: `mergeProjectLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `labelId` | path | string (uuid) | yes | A label of the path's project; another project's or tenant's label is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The target label and the number of re-tagged tickets. | 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` |

## The consequence of merging this label into a target (writes nothing)

`POST /projects/{projectKey}/labels/{labelId}/merge-preview`

- Operation ID: `previewProjectLabelMerge`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `labelId` | path | string (uuid) | yes | A label of the path's project; another project's or tenant's label is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts and whether the target is access-sensitive. | 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` |

## Restore an archived label (idempotent by state)

`POST /projects/{projectKey}/labels/{labelId}/restore`

- Operation ID: `restoreProjectLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `labelId` | path | string (uuid) | yes | A label of the path's project; another project's or tenant's label is one 404 (label.not_found). |

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

## Relay one content-free card signal on the project's cards channel (F-WRK-37)

`POST /projects/{projectKey}/presence`

- Operation ID: `relayBoardPresence`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-37

A card that the person has open or drags, for the project's full readers (R07). One signal per person per project in 2 s; an `idle` that ends an activity is exempt.

| 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. |
| `projectKey` | path | string | yes |  |
| `X-Socket-ID` | header | string | no |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Relayed, or nothing to end. |  |  |
| 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` |

## Plan a sprint (one active and at most work.sprints.plannedLimit planned per project); start it at once with start=true

`POST /projects/{projectKey}/sprints`

- Operation ID: `planSprint`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-08

| 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. |
| `projectKey` | path | string | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The sprint. | 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` |

## The project's recorded changes that the caller may see, newest first, 100 per page

`GET /projects/{projectKey}/ticket-history`

- Operation ID: `listProjectTicketHistory`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `from` | query | string (date-time) | yes |  |
| `to` | query | string (date-time) | yes |  |
| `field` | query | string | no |  |
| `actorKind` | query | string | no |  |
| `actorId` | query | string (uuid) | 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 | A page of entries with their tickets. | application/json | `TicketHistoryPage` |
| 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` |

## Export a period of the project's history as CSV — streamed up to 10,000 rows, otherwise an operation

`POST /projects/{projectKey}/ticket-history/export`

- Operation ID: `exportProjectTicketHistory`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

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

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

## Set the order of every type of the project

`PUT /projects/{projectKey}/ticket-type-order`

- Operation ID: `reorderTicketTypes`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The catalogue in the new order. | application/json | `TicketTypeCatalogue` |
| 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 project's ticket types in position order, with the caller's abilities

`GET /projects/{projectKey}/ticket-types`

- Operation ID: `listTicketTypes`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `state` | query | string | no |  |

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

## Create a ticket type in the project

`POST /projects/{projectKey}/ticket-types`

- Operation ID: `createTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new type. | 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 type that no ticket has

`DELETE /projects/{projectKey}/ticket-types/{typeKey}`

- Operation ID: `deleteTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | path | string | yes | A type key of the path's project; another project's type is one 404 (ticket_type.not_found). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Deleted (also when it was already gone). |  |  |
| 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` |

## Edit a type's name, icon, colour, allowed parents, field profile or hints

`PATCH /projects/{projectKey}/ticket-types/{typeKey}`

- Operation ID: `editTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | path | string | yes | A type key of the path's project; another project's type is one 404 (ticket_type.not_found). |

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

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

## Archive a type; its tickets keep it

`POST /projects/{projectKey}/ticket-types/{typeKey}/archive`

- Operation ID: `archiveTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | path | string | yes | A type key of the path's project; another project's type is one 404 (ticket_type.not_found). |

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

## Make an active standard type the project's default

`POST /projects/{projectKey}/ticket-types/{typeKey}/default`

- Operation ID: `setDefaultTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | path | string | yes | A type key of the path's project; another project's type is one 404 (ticket_type.not_found). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The catalogue after the change. | application/json | `TicketTypeCatalogue` |
| 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` |

## Restore an archived type

`POST /projects/{projectKey}/ticket-types/{typeKey}/restore`

- Operation ID: `restoreTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-30

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | path | string | yes | A type key of the path's project; another project's type is one 404 (ticket_type.not_found). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The type. | 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 List's total ("N of M tickets") and, with groupBy, each group header's count — the List's filters and q; bounded at 10,000 (XM-1109)

`GET /projects/{projectKey}/tickets/counts`

- Operation ID: `countProjectTickets`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-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. |
| `projectKey` | path | string | yes |  |
| `filter` | query | TicketListFilterInput | no | The generic ticket list's filters (F-WRK-14.R09; XM-708) — the shared Work filters, filter[stageKind]=todo,in_progress, the due-date range filter[dueDate][gte]=2026-09-28&filter[dueDate][lte]=2026-11-01 (the Calendar, G-WK2-2) and filter[sprint]=active\|none\|<id>. |
| `q` | query | string | no |  |
| `groupBy` | query | string | no | The List's grouping: status, assignee (needs Assignee in the reader's mask, else 400 query.invalid), epic (needs Hierarchy, else 400 hierarchy_not_visible) or priority. Absent: the total only. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The List's counts. | 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` |

## Reset the project default of a project view to the system default (plan on the project; audited)

`DELETE /projects/{projectKey}/views/{view}/default`

- Operation ID: `resetProjectViewDefault`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `view` | path | string | yes | A project view (kebab-case segment). Another value is 404 view.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Save the project default of a project view (plan on the project; audited)

`PUT /projects/{projectKey}/views/{view}/default`

- Operation ID: `saveProjectViewDefault`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `view` | path | string | yes | A project view (kebab-case segment). Another value is 404 view.not_found. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Reset the caller's display preference of a project view; the caller follows the default again

`DELETE /projects/{projectKey}/views/{view}/preference`

- Operation ID: `resetProjectViewPreference`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `view` | path | string | yes | A project view (kebab-case segment). Another value is 404 view.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Save the caller's display preference of a project view (Backlog, List, Epics)

`PUT /projects/{projectKey}/views/{view}/preference`

- Operation ID: `saveProjectViewPreference`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `view` | path | string | yes | A project view (kebab-case segment). Another value is 404 view.not_found. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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 tenant's relation kinds in order

`GET /relation-kinds`

- Operation ID: `listRelationKinds`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

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

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

## Add a custom relation kind

`POST /relation-kinds`

- Operation ID: `createRelationKind`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The kind. | 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 an unused custom kind

`DELETE /relation-kinds/{kindKey}`

- Operation ID: `deleteRelationKind`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `kindKey` | path | string | yes |  |

| 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` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change a custom kind's phrases or position

`PATCH /relation-kinds/{kindKey}`

- Operation ID: `editRelationKind`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `kindKey` | path | string | yes |  |

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

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

## Archive a custom kind; its relations stay

`POST /relation-kinds/{kindKey}/archive`

- Operation ID: `archiveRelationKind`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `kindKey` | path | string | yes |  |

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

## Restore an archived custom kind

`POST /relation-kinds/{kindKey}/restore`

- Operation ID: `restoreRelationKind`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `kindKey` | path | string | yes |  |

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

## The tenant's shared labels — the Shared labels administration list and the "Shared" group of every project's label picker (F-WRK-22.R20)

`GET /shared-labels`

- Operation ID: `listSharedLabels`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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 | Name search (contains, case-insensitive), 1–40 characters. |
| `state` | query | string | no | active (default, the pickers) · archived · all (the administration list). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Shared labels by name, at most the tenant's work.labels.sharedLabelLimit (1,000 †); sharedLabelsTruncated tells that more exist. Every internal member reads it; ticketCount and can only for administer holders. | application/json | `SharedLabelList` |
| 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` |

## Create a shared label of the tenant (administer; F-WRK-22.R20)

`POST /shared-labels`

- Operation ID: `createSharedLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The label; ETag carries 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` |
| 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` |

## Rename or recolour a shared label (If-Match; administer)

`PATCH /shared-labels/{labelId}`

- Operation ID: `editSharedLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `labelId` | path | string (uuid) | yes | A shared label of the tenant (F-WRK-22.R20); a project's label, another tenant's or a merged one is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The label after the change. | 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` |

## Archive a shared label (idempotent by state; administer)

`POST /shared-labels/{labelId}/archive`

- Operation ID: `archiveSharedLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `labelId` | path | string (uuid) | yes | A shared label of the tenant (F-WRK-22.R20); a project's label, another tenant's or a merged one is one 404 (label.not_found). |

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

## Merge a shared label into another shared label (administer; tickets of every project; F-WRK-22.R18, R20)

`POST /shared-labels/{labelId}/merge`

- Operation ID: `mergeSharedLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `labelId` | path | string (uuid) | yes | A shared label of the tenant (F-WRK-22.R20); a project's label, another tenant's or a merged one is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The target label and the number of re-tagged tickets. | 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` |

## Preview a merge of shared labels: the live tickets of every project that move and those that already carry the target (administer)

`POST /shared-labels/{labelId}/merge-preview`

- Operation ID: `previewSharedLabelMerge`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `labelId` | path | string (uuid) | yes | A shared label of the tenant (F-WRK-22.R20); a project's label, another tenant's or a merged one is one 404 (label.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts and whether the target is access-sensitive. | 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` |

## Restore a shared label (idempotent by state; administer)

`POST /shared-labels/{labelId}/restore`

- Operation ID: `restoreSharedLabel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-22

| 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. |
| `labelId` | path | string (uuid) | yes | A shared label of the tenant (F-WRK-22.R20); a project's label, another tenant's or a merged one is one 404 (label.not_found). |

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

## Discard a planned sprint that was never started; its tickets return to the backlog with their ranks

`DELETE /sprints/{sprintId}`

- Operation ID: `discardPlannedSprint`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-08

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

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

## Edit a planned or active sprint's name, goal or dates

`PATCH /sprints/{sprintId}`

- Operation ID: `editSprint`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-08

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

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

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

## Complete the active sprint; unfinished tickets go to the top of the backlog (D-075) or to the top of a planned sprint (carryOverTo)

`POST /sprints/{sprintId}/complete`

- Operation ID: `completeSprint`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-08

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

Request body (application/json): `SprintCompleteRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The completed sprint with the counts. | 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` |

## Start a planned sprint (no other active sprint; its planned tickets stay in it)

`POST /sprints/{sprintId}/start`

- Operation ID: `startSprint`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-08

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

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

## Remove a relation

`DELETE /ticket-relations/{relationId}`

- Operation ID: `removeTicketRelation`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `relationId` | path | string (uuid) | yes | A relation whose two tickets the caller can view; otherwise one 404 (ticket_relation.not_found). |

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

## Change or clear a relation's reason

`PATCH /ticket-relations/{relationId}`

- Operation ID: `editTicketRelation`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `relationId` | path | string (uuid) | yes | A relation whose two tickets the caller can view; otherwise one 404 (ticket_relation.not_found). |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The relation, read from its source ticket. A panel of the target ticket reads the list again for its own phrase. | 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` |

## Apply one action to 1–100 tickets of one project, all or nothing (05 §11)

`POST /tickets/bulk`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Every target with its version; affected counts the changed ones. | 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` |

## Move the ticket to the trash (restorable for the tenant's retention)

`DELETE /tickets/{ticketKey}`

- Operation ID: `trashTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Trashed. |  |  |
| 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 ticket's acceptance criteria in their order, with "N of M met"

`GET /tickets/{ticketKey}/acceptance-criteria`

- Operation ID: `listAcceptanceCriteria`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The rows, the summary and whether the reader may change the list. | application/json | `AcceptanceCriteriaList` |
| 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` |

## Add one criterion at the end of the list or after another criterion

`POST /tickets/{ticketKey}/acceptance-criteria`

- Operation ID: `addAcceptanceCriterion`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new criterion. `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` |
| 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` |

## Add the lines of a paste as criteria, in their order

`POST /tickets/{ticketKey}/acceptance-criteria/batch`

- Operation ID: `addAcceptanceCriteria`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-39

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new criteria in their 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` |
| 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` |

## The ticket's approval panel — the open request, the history and what the caller may do

`GET /tickets/{ticketKey}/approval-requests`

- Operation ID: `getTicketApprovals`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The open request (absent when none), up to 50 earlier requests and the caller's can. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Request a client decision on the ticket's exact current subject

`POST /tickets/{ticketKey}/approval-requests`

- Operation ID: `requestApproval`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `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): `ApprovalDraft`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The open request. | 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` |

## Dry run — eligible reviewers, the subject that would be bound and the client version

`POST /tickets/{ticketKey}/approval-requests/validate`

- Operation ID: `validateApprovalRequest`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The validation; nothing was written. | 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` |

## Attach an uploaded file to the ticket (Internal by default)

`POST /tickets/{ticketKey}/attachments`

- Operation ID: `attachFileToTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-19

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The attachment. | 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` |

## A ticket's direct children in rank order, 50 per page

`GET /tickets/{ticketKey}/children`

- Operation ID: `listTicketChildren`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-31

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); 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 | Children; links.next for the next page. | 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` |

## Switch Client visible for the client version the consequence showed

`PUT /tickets/{ticketKey}/client-visibility`

- Operation ID: `setTicketClientVisibility`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-18

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ticket; meta.warnings may hold ticket.approval_hidden or ticket.stage_hidden_from_clients. | 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` |

## What clients would see and what switching off would hide, for the current client version

`GET /tickets/{ticketKey}/client-visibility/consequence`

- Operation ID: `getTicketExposureConsequence`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-18

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

## Open a live session (write or watch) of a ticket's description and receive a short-lived token for the collaboration server

`POST /tickets/{ticketKey}/description/collab-sessions`

- Operation ID: `openDescriptionSession`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-25

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The grant; mode may be narrower than requested, with the reason. | application/json | `object` |
| 401 | 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` |

## Re-decide access to a ticket description's live session and receive a fresh single-use token with the current mode

`POST /tickets/{ticketKey}/description/collab-sessions/{sessionId}/renew`

- Operation ID: `renewDescriptionSession`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-25

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `sessionId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A fresh grant; the mode may be narrower than before. | application/json | `object` |
| 401 | 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` |

## Make a copy of the ticket in the same project or in another project (XM-1108; F-WRK-16.R15–R22)

`POST /tickets/{ticketKey}/duplicate`

- Operation ID: `duplicateTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

Request body (application/json): `TicketCopyRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The copy, through the caller's mask; copiedFrom names the source. | 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` |

## The ticket's recorded changes that the caller may see, newest first, 50 per page

`GET /tickets/{ticketKey}/history`

- Operation ID: `listTicketHistory`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `field` | query | string | no | A comma list of history fields. |
| `actorKind` | query | string | 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 | A page of entries. | application/json | `TicketHistoryPage` |
| 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` |

## Redact the inline text of one side of a history entry (an Admin only); the text is replaced by a notice

`POST /tickets/{ticketKey}/history/entries/{entryId}/redaction`

- Operation ID: `redactTicketHistoryValue`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `entryId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The entry with the redacted side. | 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 kept version of the ticket's description or long-text field

`GET /tickets/{ticketKey}/history/text-revisions/{revisionId}`

- Operation ID: `getTicketTextRevision`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `revisionId` | path | string (uuid) | yes |  |

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

## Redact one kept text revision (an Admin only); the text is replaced by a notice, and the audit holds who and when

`POST /tickets/{ticketKey}/history/text-revisions/{revisionId}/redaction`

- Operation ID: `redactTicketTextRevision`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-36

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `revisionId` | path | string (uuid) | yes |  |

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

## Move the ticket to another project — a copy in the target and the trash of the source (XM-1108; F-WRK-16.R15–R22)

`POST /tickets/{ticketKey}/move`

- Operation ID: `moveTicketToProject`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The copy in the target project, through the caller's mask; copiedFrom names the source (kind move). | 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` |

## The opportunities whose Build decision links this ticket — the ticket panel's back-link

`GET /tickets/{ticketKey}/opportunities`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Up to 10 linking opportunities, newest decision first. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Set, change or remove a ticket's parent

`PUT /tickets/{ticketKey}/parent`

- Operation ID: `setTicketParent`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-31

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ticket's hierarchy summary and new 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` |
| 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` |

## Relay one content-free activity signal on the ticket's presence channel (F-WRK-37)

`POST /tickets/{ticketKey}/presence`

- Operation ID: `relayTicketPresence`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-37

Published to the others on the ticket's presence channel (`toOthers()` with `X-Socket-ID`) as the Pusher event `presence`; never stored. One signal per person per ticket in 2 s; an `idle` that ends an activity is exempt.

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `X-Socket-ID` | header | string | no |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Relayed, or nothing to end. |  |  |
| 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` |

## The ticket's presence channel, with the project's audience epoch (F-WRK-37)

`GET /tickets/{ticketKey}/realtime`

- Operation ID: `getTicketPresenceChannel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-37

`presence-tenant.{t}.project.{p}.ticket.{ticket}.v{n}.a{m}` (R03a). The SPA reads it when it opens the ticket panel and again on `channels.rotated`. Internal readers of the ticket only; anyone else 404.

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

## The ticket's relations that the caller can see, grouped by phrase

`GET /tickets/{ticketKey}/relations`

- Operation ID: `listTicketRelations`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

## Link this ticket to another ticket with a relation kind and a direction

`POST /tickets/{ticketKey}/relations`

- Operation ID: `addTicketRelation`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-33

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The relation as this ticket reads it. | 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. `ticket_relation.graph_busy` has `Retry-After`. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Set the resolution of a ticket in a done stage — completed, cancelled or duplicate

`PUT /tickets/{ticketKey}/resolution`

- Operation ID: `setTicketResolution`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `If-Match` | header | string | no | OPTIONAL (fix round 24 Nov 2026, F1, the lost updates; as placeTicket, XM-857): the ticket's version in quotes. A different version answers 412 stale-version, and nothing changes; absent compares nothing. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ticket's resolution and new 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` |
| 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` |

## Restore a trashed ticket within the retention

`POST /tickets/{ticketKey}/restore`

- Operation ID: `restoreTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The restored ticket; meta.warnings may hold ticket.stage_hidden_from_clients. | 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` |

## Change the ticket's type with the chosen parent and children dispositions, in one step

`POST /tickets/{ticketKey}/type-change`

- Operation ID: `changeTicketType`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-32

| 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. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

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

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

## What a change of the ticket's type would do, for the caller

`GET /tickets/{ticketKey}/type-change-preview`

- Operation ID: `previewTicketTypeChange`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-32

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `typeKey` | query | string | yes |  |

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

## The watchers of the ticket — the reporter, the other members who watch, the caller's state (XM-1102; F-WRK-16.R23–R27)

`GET /tickets/{ticketKey}/watchers`

- Operation ID: `listTicketWatchers`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The Watchers row of the panel. | 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 member stops watching the ticket — the reporter is then muted; idempotent by state (XM-1102; F-WRK-16.R24, R26)

`DELETE /tickets/{ticketKey}/watchers/{memberId}`

- Operation ID: `unwatchTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `memberId` | path | string (uuid) | string | yes | A member id, or me for the caller (XM-1648; R27). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The watchers after the change. | 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` |

## The member watches the ticket — the caller ("Watch ticket", view) or another member (edit); idempotent by state (XM-1102; F-WRK-16.R24–R26)

`PUT /tickets/{ticketKey}/watchers/{memberId}`

- Operation ID: `watchTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-16

| 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 | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `memberId` | path | string (uuid) | string | yes | A member id, or me for the caller (XM-1648; R27). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The watchers after the change. | 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` |

## Reset the workspace default of a workspace view to the system default (administer; audited)

`DELETE /views/{view}/default`

- Operation ID: `resetWorkspaceViewDefault`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `view` | path | string | yes | A workspace view (kebab-case segment). Another value is 404 view.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Save the workspace default of a workspace view (administer; audited)

`PUT /views/{view}/default`

- Operation ID: `saveWorkspaceViewDefault`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `view` | path | string | yes | A workspace view (kebab-case segment). Another value is 404 view.not_found. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Reset the caller's display preference of a workspace view

`DELETE /views/{view}/preference`

- Operation ID: `resetWorkspaceViewPreference`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `view` | path | string | yes | A workspace view (kebab-case segment). Another value is 404 view.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |

## Save the caller's display preference of a workspace view (My tickets, Projects)

`PUT /views/{view}/preference`

- Operation ID: `saveWorkspaceViewPreference`
- Call with: Session of the Youniton apps (app only)
- Feature: F-WRK-41

| 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. |
| `view` | path | string | yes | A workspace view (kebab-case segment). Another value is 404 view.not_found. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The caller's effective preference after the write. ETag is the written resource's version (the caller's preference, or the default). | 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` |
| 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` |
