# Projects

Read the projects in your scope, one project and its field schema. The Youniton apps also use this module to configure projects.

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

## The project catalogue — the member's visible projects, filtered, segmented and paged with totals

`GET /projects`

- Operation ID: `listProjects`
- Call with: Personal access token, ability `projects:read`
- Feature: F-PRJ-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. |
| `q` | query | string | no |  |
| `filter[teamId]` | query | string (uuid) | no |  |
| `filter[clientOrganisationId]` | query | string | no | An organisation id, or none for projects without a client. |
| `filter[status]` | query | string | no |  |
| `filter[segment]` | query | string | no |  |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no | R09; XM-1473: 5 is the compact page of the designed list (the other offset lists take 10, 20, 25, 30, 50 or 100). |
| `sort` | query | string | no | XM-1118 (R08; G-H-34): the order of the rows. The keys are updated (the last activity), name, team (the team name), client (the organisation name), members (the People count), openTickets and sprint (the end date of the active sprint). A leading - means descending. The project id breaks every tie, in the same direction. A project without a client or without a sprint comes last. members over more than 10,000 visible, filtered projects gives 400 query.invalid, which names sort with too_many_projects. |
| `filter[memberId]` | query | string | no | XM-1118 (R03; G-H-31): 1–20 member ids, separated by commas, from meta.facets.members. The filter keeps the projects whose People list holds any of these members. XM-1473: ";" separates groups that combine with AND (A,B;C = A or B, and also C); at most 10 groups and 20 ids in all. |
| `filter[notMemberId]` | query | string | no | XM-1118 (R03): 1–20 member ids, separated by commas. The filter keeps the projects whose People list holds none of these members. XM-1473: ";" groups combine into one list (at most 10 groups and 20 ids in all). |
| `filter[members]` | query | string | no | XM-1473 (R03): empty keeps the projects whose People list has no active internal person (nobody in the owning team and no active team-kind membership of an active internal member); not_empty keeps the others. ";" separates up to 10 conditions that combine with AND. |
| `filter[sprint]` | query | string | no | XM-1118 (R03, R07): active keeps the active projects that have an active sprint and an available Backlog & sprints module. none keeps all other projects ("No sprint"). XM-1473: ";" separates up to 10 conditions that combine with AND (active;none matches no project). The grid's "is empty" is none and "is not empty" is active. |
| `filter[openTickets][gte]` | query | integer | string | no | XM-1118 (R03): the minimum number of open tickets. The grid operators map to gte, lte, neq and notBetween; these conditions combine with AND. XM-1473: ";" separates up to 10 numbers (the highest applies). Open tickets "is not empty" is gte=1. |
| `filter[openTickets][lte]` | query | integer | string | no | XM-1118 (R03): the maximum number of open tickets. XM-1473: ";" separates up to 10 numbers (the lowest applies). Open tickets "is empty" is lte=0. |
| `filter[openTickets][neq]` | query | integer | string | no | XM-1118 (R03): a number of open tickets that the project must not have. XM-1473: ";" separates up to 10 numbers, each excluded. |
| `filter[openTickets][notBetween]` | query | string | no | XM-1473 (R03): a,b (0–1,000,000, a ≤ b) keeps the projects with fewer than a or more than b open tickets (the grid's "not between"). ";" separates up to 10 ranges, each excluded. |
| `filter[module]` | query | string | no | R03 (day-2 fix round, 25 Nov 2026; F-HLP-04.R02): one project module key. Keeps the active projects where the module is on and available (the tenant's gate of the module, the feature flag and the plan, is open); a closed gate matches no project. An unknown key is 400 query.invalid. Administration › Help desk lists the projects of a new connection with help_desk. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of rows ordered by last activity, with page totals, segment counts and the filter facets. | 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 project document every project route loads

`GET /projects/{projectKey}`

- Operation ID: `getProject`
- Call with: Personal access token, ability `projects:read`
- Feature: F-PRJ-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 | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project with modules and availability, stages, Timeline settings, field-set version and the caller's capabilities; ETag carries the version. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The caller's view of the project's custom field set (types, options, placement, can)

`GET /projects/{projectKey}/field-schema`

- Operation ID: `getProjectFieldSchema`
- Call with: Personal access token, ability `projects:read`
- Feature: F-WRK-26

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

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

## The tenant's Client sharing list — each visible active project's sharing summary, by key

`GET /client-sharing/projects`

- Operation ID: `listClientSharingSummaries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

XM-1469 (F-ACC-09.R15). Needs `administer` on Administration › Client sharing. One keyset page of the visible active projects in key order, then the facts of the page's projects only. `meta.totals.projects` is the number of projects that `q` matches. `meta.totals.projectsWithGuests` is the number of visible active projects with a client guest, whatever `q`.

| 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 | The name contains it (case-insensitive) or the key starts with it; 1–120 characters after trimming. |
| `page[size]` | query | integer | no |  |
| `page[cursor]` | query | string | no | The cursor of `links.next`; it is bound to `q`. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of projects with their sharing summary, and the list's figures. | 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 tenant's custom-field library

`GET /custom-fields`

- Operation ID: `listCustomFields`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-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. |
| `q` | query | string | no | Keeps the fields whose name contains this text, in any case (F-PRJ-13.R13). 1–120 characters after normalisation. |
| `filter[status]` | query | string | no |  |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Fields with their project counts, active first by name, then archived; deleting fields marked. | 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` |

## Define a custom field

`POST /custom-fields`

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

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

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

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

## One field with its value and project counts

`GET /custom-fields/{fieldId}`

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

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

## Change name, description, configuration, options or client class; key and type never change

`PATCH /custom-fields/{fieldId}`

- Operation ID: `updateCustomField`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-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. |
| `fieldId` | path | string (uuid) | yes |  |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

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

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

## Archive a field — hidden everywhere, values kept

`POST /custom-fields/{fieldId}/archive`

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

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

## Delete a field and purge its values; with dryRun only the counts and references

`POST /custom-fields/{fieldId}/delete`

- Operation ID: `deleteCustomField`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-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. |
| `fieldId` | path | string (uuid) | yes |  |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `dryRun` | query | boolean | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts and references; deleted false for a dry run, true once the field entered deleting. | 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` |

## Restore an archived field within the plan limit

`POST /custom-fields/{fieldId}/restore`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The active field. | 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 delivery roles (names only, no rates)

`GET /delivery-roles`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The roles in their order. The active list holds at most 200 roles. The archived list holds every archived role and can be longer, up to the bound of 10,000 roles for one tenant (archived roles are never deleted); above that bound the answer is 409 limit.reached (dimension delivery_roles). The ETag is the list's version (fix round 24 Nov 2026, F1). | 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` |

## Replace the list of delivery roles — add, rename, reorder and archive

`PUT /delivery-roles`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | no | OPTIONAL (fix round 24 Nov 2026, F1, the lost updates): the version of the list in quotes (meta.version of the read). A different version answers 412 stale-version with currentVersion, and nothing changes; absent compares nothing. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The roles; the ETag is the list's new 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` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The tenant's defaults for new projects

`GET /new-project-defaults`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The current template with its version; the built-in template when never saved. | 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` |

## Replace the defaults for new projects; existing projects are never changed

`PUT /new-project-defaults`

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

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

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

## Create a project from the tenant's defaults for new projects

`POST /projects`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The created project's document; Location names it by key. | 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` |

## Pin, unpin or archive 1–100 projects, all or nothing

`POST /projects/bulk`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The action, the number affected and per target its new version or unchanged. | 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` |

## What the New project dialog may offer the caller

`GET /projects/creation-options`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The teams the caller may choose, whether a client may be set, the limit usage and the defaults 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` |

## Dry run — suggest a key and check the draft without creating anything

`POST /projects/validate`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The suggested key, its availability, the limit usage and the per-field errors; nothing was written. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Edit the project document — name, key (before the first ticket), team, modules, Timeline settings

`PATCH /projects/{projectKey}`

- Operation ID: `updateProject`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-09

| 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. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project document with its new version (and its canonical key after a key change). | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Archive a project — hidden from navigation, pickers, counts, AI and the portal; everything kept

`POST /projects/{projectKey}/archive`

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

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

## ChangeProjectClient — set or remove the client organisation; increments the client version

`PUT /projects/{projectKey}/client`

- Operation ID: `changeProjectClient`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-09

| 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. |
| `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): `ClientChangeRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project document with its new client 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` |

## Dry run — the consequence of changing or removing the project's client, with the current client version

`POST /projects/{projectKey}/client-change/validate`

- Operation ID: `validateClientChange`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PRJ-09

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | What becomes internal-only or ends; 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's client guests and pending client invitations with tenant-wide totals

`GET /projects/{projectKey}/client-guests`

- Operation ID: `listProjectClientGuests`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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. |
| `projectKey` | path | string | yes |  |
| `q` | query | string | no |  |
| `filter[status]` | query | string | no |  |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of guest rows (full or reduced by the caller's capability) and the totals. | 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 client guest from this project — the portal is withdrawn at once

`DELETE /projects/{projectKey}/client-guests/{memberId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed (or no active client membership). |  |  |
| 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` |

## Choose or clear the client lead shown to clients as "Your contact"

`PUT /projects/{projectKey}/client-lead`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project document with the new client lead. | 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 people whom the Client lead picker offers — only those whom setProjectClientLead accepts (R02; no Admin)

`GET /projects/{projectKey}/client-lead/candidates`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The eligible people, in name 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` |

## A project's client-sharing policy with its columns, current client and the caller's abilities

`GET /projects/{projectKey}/client-sharing`

- Operation ID: `getClientSharingPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

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

## Save the project's policy; applies at once to every guest

`PUT /projects/{projectKey}/client-sharing`

- Operation ID: `saveClientSharingPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

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

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

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

## Render a sample ticket as the project's client role over the unsaved client-sharing policy

`POST /projects/{projectKey}/client-sharing/preview`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The client card with ticket counts and presented columns. | 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` |

## Everything shared with an earlier client of the project, per kind

`GET /projects/{projectKey}/client-sharing/review`

- Operation ID: `getClientSharingReview`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of 50 items of the kind, with the organisation and version each was shared under. | 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` |

## Re-share ticket attachments shared with an earlier client version into the current one (1–100)

`POST /projects/{projectKey}/client-sharing/review/attachments`

- Operation ID: `reshareAttachmentsWithCurrentClient`
- 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. |
| `projectKey` | path | string | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The restamped attachments. | 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 an attachment re-share (writes nothing)

`POST /projects/{projectKey}/client-sharing/review/attachments/validate`

- Operation ID: `validateAttachmentReshare`
- 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. |
| `projectKey` | path | string | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The consequence with per-item problems. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The number of items per kind shared with an earlier client of the project

`GET /projects/{projectKey}/client-sharing/review/counts`

- Operation ID: `getClientSharingReviewCounts`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

| 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 | One count for each kind that the reader may see. A kind that the reader's role hides is not in the list. | 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` |

## Re-share tickets shared with an earlier client version into the current one (1–100)

`POST /projects/{projectKey}/client-sharing/review/tickets`

- Operation ID: `reshareTicketsWithCurrentClient`
- 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. |
| `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): `ReshareTicketsRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The restamped 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 a re-share before it is confirmed (writes nothing)

`POST /projects/{projectKey}/client-sharing/review/tickets/validate`

- Operation ID: `validateTicketReshare`
- 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. |
| `projectKey` | path | string | yes |  |

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

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

## Dry run — the consequence of a proposed policy, bound to the current client

`POST /projects/{projectKey}/client-sharing/validate`

- Operation ID: `validateClientSharingPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-ACC-09

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Widened and narrowed fields with their ticket counts and the client version computed for; nothing 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Share earlier client-thread comments (1–500) with the project's current client

`POST /projects/{projectKey}/client-thread-history-shares`

- Operation ID: `shareClientThreadHistory`
- 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. |
| `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): `ThreadHistoryShareRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The shared comments. | 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 a history share (writes nothing)

`POST /projects/{projectKey}/client-thread-history-shares/validate`

- Operation ID: `validateClientThreadHistoryShare`
- 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. |
| `projectKey` | path | string | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The consequence, including comments that stay hidden because their ticket is not shared. | 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` |

## Save the project's settings and its stage list together — all or nothing (the one "Save changes")

`POST /projects/{projectKey}/configuration`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `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): `ProjectConfigurationSave`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project document after the save; both parts were written, or nothing was. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's people with their delivery role in force, its source and the project overrides

`GET /projects/{projectKey}/delivery-roles`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One row per project member or member with an override, at most 500; `meta.truncated` is true when the project has more (KDC-07). | 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` |

## Give a member a delivery role on this project from an effective date, or end it

`POST /projects/{projectKey}/delivery-roles`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The member's row with the new override; warnings name a member who is not on the project. | 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` |

## Relay one content-free signal on the project's Discovery board presence channel (owner, 23 Nov 2026)

`POST /projects/{projectKey}/discovery/presence`

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

The opportunity that the person has open, or the one field of it that they edit, or `idle`. The opportunity must be of this project (else 404); `editing` needs the field's capability (`discovery_manage`; `discovery_contribute` for `interview`) and an active project. One signal per person per board in the platform's relay window (`429`, `limiter: presence-relay`); an `idle` that ends an activity is exempt. Nothing is stored.

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

| 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 Discovery board's presence channel, at the project's audience epoch (owner, 23 Nov 2026)

`GET /projects/{projectKey}/discovery/realtime`

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

`presence-tenant.{t}.project.{p}.discovery.v{n}`: who is on the board, and which opportunity and field each one has open. The SPA reads it when it opens the board and again on `channels.rotated`. Refused exactly as the board's read: a client or a hidden project 404, Discovery off 403.

| 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 channel to join. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's field set for its editors

`GET /projects/{projectKey}/fields`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The ordered entries with library details and the version; 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` |

## Replace the project's field set as one versioned list

`PUT /projects/{projectKey}/fields`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved set with its 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` |
| 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 active library fields that an editor of this project's field set can add

`GET /projects/{projectKey}/fields/library`

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

XM-1427 (R12). The caller must be able to edit this project's field set (R01). The list holds the active library fields only, by name, with the configuration of each type; a select field shows its active options only. It does not show project counts, value counts, archived fields or who made a field. `GET /custom-fields` stays the Admin's library read.

| 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. |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of the active library fields by name. | 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 members with capacity and hours this week

`GET /projects/{projectKey}/members`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes |  |
| `q` | query | string | no |  |
| `sort` | query | string | no |  |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of members and the project-wide summary. | 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` |

## Add an existing internal member to the project (Admins, CFL-105)

`POST /projects/{projectKey}/members`

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

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

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

## Remove an internal member from the project (Admins, CFL-105)

`DELETE /projects/{projectKey}/members/{memberId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed (or no active membership). |  |  |
| 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` |

## Dry run — the consequences of a module change, without saving

`POST /projects/{projectKey}/modules/validate`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Per changed module, its effects with counts and any errors; 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The Overview read model — header facts, tiles, sprint panel and Team panel

`GET /projects/{projectKey}/overview`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The figures the caller may see, each absent when its module, client or sprint is missing. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project channel's current name, with its audience epoch (SEC-WRK2-07)

`GET /projects/{projectKey}/realtime`

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

`private-tenant.{t}.project.{p}.v{n}`: every narrowing moves `n`, publishers publish on the current name only and `/broadcasting/auth` signs only it, so a socket kept open after a narrowing starves (07 §5.4). The SPA reads it when it opens the project and again on `channels.rotated` (and `access.changed`). Internal members with the project in scope; 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. |
| `projectKey` | path | string | yes |  |

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

## Restore an archived project within the project limit

`POST /projects/{projectKey}/restore`

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

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

## Dry run — the limit and the client access a restore brings back

`POST /projects/{projectKey}/restore/validate`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The limit usage and the counts of guests and client-visible tickets that regain access; 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` |

## Every settings group of one project the caller may read

`GET /projects/{projectKey}/settings`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The project's readable groups. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's help-desk settings group, service levels included

`GET /projects/{projectKey}/settings/helpdesk`

- Operation ID: `getProjectHelpDeskSettings`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-09

| 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 group; ETag carries the group's version. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change the project's help-desk settings (JSON Merge Patch; null resets to the default)

`PATCH /projects/{projectKey}/settings/helpdesk`

- Operation ID: `changeProjectHelpDeskSettings`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-09

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The group after the change. | 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` |
| 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 project settings group; ETag carries its version

`GET /projects/{projectKey}/settings/{group}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `group` | path | string | yes | A settings group — a key without its last segment, or the group a key's placement names (`docs`, `portal.approvals`). |
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

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

## Change one project settings group — a JSON Merge Patch with If-Match (null resets a key to its default)

`PATCH /projects/{projectKey}/settings/{group}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `group` | path | string | yes | A settings group — a key without its last segment, or the group a key's placement names (`docs`, `portal.approvals`). |
| `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/merge-patch+json, required): `SettingGroupPatch`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The group after the change. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 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` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Dry run of a project settings group change; nothing is written

`POST /projects/{projectKey}/settings/{group}/validate`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `group` | path | string | yes | A settings group — a key without its last segment, or the group a key's placement names (`docs`, `portal.approvals`). |
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

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

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

## Save the whole stage list — add, rename, reorder, kind, colour, presentation, WIP; removals name their merge target

`PUT /projects/{projectKey}/stages`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `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): `StageListRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved list with its new version; a removal with tickets is listed as removing until it completes. | 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 live tickets the caller may see in each stage — "Tickets n" of the stage editor

`GET /projects/{projectKey}/stages/ticket-counts`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Each stage in board order; ticketCount is absent while the caller's plan hides the status. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Dry run — tickets moved, client statuses changed, kinds changed and errors of a stage-list draft

`POST /projects/{projectKey}/stages/validate`

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

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

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