# Administration

Members, teams, roles, invitations, security, settings, audit and support access.

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

## Revoke an extension at once

`DELETE /access-extensions/{extensionId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Revoked; the member's next request no longer includes it. |  |  |
| 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` |

## Change an extension's grant, projects, reason or expiry

`PATCH /access-extensions/{extensionId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The changed extension. | 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 rule registry of the current grammar version for the role editor

`GET /access/schema`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Attributes, operators, capabilities, fields, scopes, levels, templates, limits and the tenant's custom fields. | 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 tenant Admin's view of a recovery that concerns a member of the tenant

`GET /account-recovery-notices/{requestId}`

- Operation ID: `getAccountRecoveryNotice`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-15

| 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. |
| `requestId` | path | string (uuid) | yes | An account-recovery request id. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The member (id in this tenant, name, e-mail), the initiator kind, the state, the request time and the earliest completion; never evidence. | 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 tenant Admin attests the member's identity (supporting evidence only)

`POST /account-recovery-notices/{requestId}/attest`

- Operation ID: `attestAccountRecovery`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-15

| 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. |
| `requestId` | path | string (uuid) | yes | An account-recovery request id. |

Request body (application/json): `AccountRecoveryNoticeAct`

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Attestation recorded as T1 evidence. |  |  |
| 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` |

## A tenant Admin objects; an approved request is held for review

`POST /account-recovery-notices/{requestId}/object`

- Operation ID: `objectToAccountRecovery`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-15

| 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. |
| `requestId` | path | string (uuid) | yes | An account-recovery request id. |

Request body (application/json): `AccountRecoveryNoticeAct`

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

## The tenant's agent identities (an Admin) or the caller's own identities (a member)

`GET /agent-identities`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 50 identities, by name. | 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` |

## Create an agent, service or meeting-assistant identity

`POST /agent-identities`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The identity, without tokens. | 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 | 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 identity with its tokens and its usage of the last 30 days

`GET /agent-identities/{identityId}`

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

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

## Change an identity's name, projects, abilities, actions, approvers, write mode, limits or ranges

`PATCH /agent-identities/{identityId}`

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

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

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

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

## Stop every call of the identity until it is resumed

`POST /agent-identities/{identityId}/pause`

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

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

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

## Let a paused identity act again

`POST /agent-identities/{identityId}/resume`

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

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

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

## Retract every item that the identity wrote in a time window (a long-running operation)

`POST /agent-identities/{identityId}/retract-items`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 202 | The operation; its result holds the count of retracted items. | 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` |

## Revoke the identity and all its tokens; terminal

`POST /agent-identities/{identityId}/revoke`

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

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

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

## Issue the identity's token; the secret is shown once

`POST /agent-identities/{identityId}/tokens`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The token view and, only in this answer, the plaintext secret. | 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` |

## Issue a new token and keep the old one for the overlap

`POST /agent-identities/{identityId}/tokens/rotate`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new token view and its secret, once; the old token's overlapEndsAt is set. | 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` |

## Revoke one token of the identity at once

`DELETE /agent-identities/{identityId}/tokens/{tokenId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | The token is gone (also when it was gone before). |  |  |
| 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` |

## Give the identity to a new owner (an Admin); it comes back paused

`POST /agent-identities/{identityId}/transfer`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The transferred identity, paused. | 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` |
| 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 audit log, newest first, 50 per batch

`GET /audit-events`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `filter[actor]` | query | string | no | anyone (default), operators, system, or member:<memberId>. |
| `filter[category]` | query | string | no |  |
| `filter[type]` | query | string | no |  |
| `filter[period]` | query | string | no |  |
| `filter[from]` | query | string (date) | no | First day of a custom range, in the viewer's profile time zone (D-128). |
| `filter[to]` | query | string (date) | no |  |
| `q` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One batch of events with the matching count and the retention caption. | 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` |

## The audit type registry's categories and types for the Event type filter

`GET /audit-events/categories`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Categories with their types and display names in the caller's language. | 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` |

## Export the filtered audit list as CSV — streamed up to 100,000 rows, otherwise an operation

`POST /audit-events/export`

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

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

## The number of events recorded after the reader read the list, under the list's filters (at most 100)

`GET /audit-events/new-count`

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

F-AUD-01.R14 (XM-1136, XM-1155). Send the same filters as the list and `seen`, the list's `meta.seenCursor`. The count is of the records that the log recorded after the list's first batch was read, also when their time is older (a mirrored record). Without `seen`, every match counts. The `audit.changed` envelope only starts this 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. |
| `seen` | query | string | no | The `meta.seenCursor` of the list's first batch, for the same filters. |
| `filter[actor]` | query | string | no | anyone (default), operators, system, or member:<memberId>. |
| `filter[category]` | query | string | no |  |
| `filter[type]` | query | string | no |  |
| `filter[period]` | query | string | no |  |
| `filter[from]` | query | string (date) | no |  |
| `filter[to]` | query | string (date) | no |  |
| `q` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The capped number of new events. | 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` |

## One audit event with its prose, structured record and contextual actions

`GET /audit-events/{eventId}`

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

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

## Download one audit record as JSON with its schema version

`GET /audit-events/{eventId}/export`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The record as a JSON attachment. | application/json | `AuditRecordDocument` |
| 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 prompt text behind a sensitive ai.prompt record ("Show prompt"), through Assist's access-controlled read, or its state

`GET /audit-events/{eventId}/prompt`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The prompt text while it exists, otherwise its state. Never cached. | 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` |

## Mark a suppressed address of the tenant as working again (Admins)

`POST /email-deliverability/clear`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The address's deliverability after clearing. | 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` |

## Send the batch — create invitations and resend existing ones, all or nothing

`POST /invitations`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The invitations created and resent, and the skipped addresses. | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## What the Invite people dialog may offer the caller

`GET /invitations/options`

- Operation ID: `getInvitationOptions`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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. |
| `projectKey` | query | string | no | The preset project of the entry point (Client sharing, project People). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Grantable roles, team choice, seat usage, expiry and the two-factor 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` |

## Typeahead of the projects the caller may invite into (at most 20)

`GET /invitations/project-candidates`

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

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

## Dry run — classify every address without sending

`POST /invitations/validate`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Per-address statuses, totals and seat usage; 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` |

## Issue a new link and expiry for a pending or expired invitation

`POST /invitations/{invitationId}/resend`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The invitation's row after the resend. | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Revoke a pending or expired invitation; its link stops working at once

`POST /invitations/{invitationId}/revoke`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The invitation's row in state revoked. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The member directory — members, client guests and pending invitations

`GET /members`

- Operation ID: `listMembers`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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. |
| `filter[segment]` | query | string | no |  |
| `filter[audience]` | query | string | no | XM-1470 (F-TEN-04.R12) — only the members and the invitations of this audience, with AND on the segment and the other filters. `client` with the `all` segment lists the active client guests and the client invitations (pending and expired). Without it, the rows are those of the segment. |
| `filter[role]` | query | string (uuid) | no |  |
| `filter[team]` | query | string (uuid) | no |  |
| `filter[twoFactor]` | query | string | no |  |
| `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 rows with exact segment 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` |

## Change role, remove or remind up to 100 members — all or nothing

`POST /members/bulk`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The affected members with their versions, and skipped targets. | 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` |

## CSV of the selection or of the filtered directory

`POST /members/export`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A streamed text/csv attachment (up to 100,000 rows); the audit record was committed before the first byte. | text/csv | `string` |
| 202 | An export operation of kind member_export for larger sets (XM-17); its result is the file id and row count, read with GET /operations/{id}. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 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` |

## Remove a member from the tenant

`DELETE /members/{memberId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed (or already removed — a removed member needs no version check). |  |  |
| 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 Manage panel of one member or client guest

`GET /members/{memberId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The member's detail with `can` flags; the ETag is the member'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 a member's role, job title or weekly capacity

`PATCH /members/{memberId}`

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

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

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

## A member's role, extra permissions and every effective permission with its source

`GET /members/{memberId}/access`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The access view ("Developer + 2 extra permissions") with Explain access. | 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` |

## Grant one extra permission to an internal member

`POST /members/{memberId}/access-extensions`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The member's access view with the new extension. | 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` |

## Open an independent account recovery for a member who lost their authenticator

`POST /members/{memberId}/account-recovery-request`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 202 | The request is open; the person must continue it (F-IDN-15). | 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` |

## A member's avatar image for an img element of the tenant (R11)

`GET /members/{memberId}/avatar`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `memberId` | path | string (uuid) | yes |  |
| `tenant` | query | string (uuid) | yes | The tenant id, checked like X-Kanso-Tenant (an img element cannot send headers). |
| `If-None-Match` | header | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The 256 px WebP image; a strong ETag; Cache-Control private, no-store. | image/webp | `string (binary)` |
| 304 | The image did not change. |  |  |
| 401 | 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` |

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

`POST /members/{memberId}/delivery-role-assignments`

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

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

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

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

## A member's delivery-role history, project roles and — for view_rates — rates

`GET /members/{memberId}/finance-profile`

- Operation ID: `getMemberFinanceProfile`
- 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. |
| `memberId` | path | string (uuid) | yes | A member's id; a member outside the tenant and a missing one are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The profile; rates only for a reader with view_rates (audited). | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Sign the member out of this tenant

`POST /members/{memberId}/sessions/revoke`

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

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

## Tenant-scoped Reset 2FA — sign out here, end this tenant's device trust, ask the second factor again here

`POST /members/{memberId}/two-factor-reset`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The updated detail (`twoFactor.lastResetAt` set, `sessions.activeInTenant` 0). | 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` |

## Log time for another member in the reach of the actor's log_time_on_behalf right

`POST /members/{memberId}/worklogs`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The person's new worklog as the holder reads it; `loggedBy` is the holder. | 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 portal branding

`GET /portal-branding`

- Operation ID: `getPortalBranding`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-20

| 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 logo's authorised URL, the colour and the version (`ETag`); absent members mean the default. | application/json | `object` |
| 401 | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Set or remove the tenant's portal logo and accent colour

`PUT /portal-branding`

- Operation ID: `savePortalBranding`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-20

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

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

## The tenant's roles with live member counts

`GET /roles`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Every role, system roles first; bounded (at most 200 roles per tenant). | 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` |

## Create a custom role from a template or as a copy of another role

`POST /roles`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new role, version 1 active; 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` |

## Delete a custom role that no member holds

`DELETE /roles/{roleId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | The role, its versions and its draft are 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` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One role with its active rules, the caller's draft or another author's draft marker, and its protected operands

`GET /roles/{roleId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The role; ETag carries the role'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` |

## Rename a custom role

`PATCH /roles/{roleId}`

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

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

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

## Save the role — the draft becomes the new active version and applies at once

`POST /roles/{roleId}/activate`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The role with its new active 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` |

## Discard a role's draft (the author's, or another author's explicitly)

`DELETE /roles/{roleId}/draft`

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

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

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

## Save the caller's draft of a role (the whole document)

`PUT /roles/{roleId}/draft`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The stored draft with its new draft version and warnings. | 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 activating the draft changes for today's holders, its policy classification and new protected operands

`GET /roles/{roleId}/draft/impact`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Presentation only; computed when asked. | 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` |

## Render a sample ticket as a role (draft or active) or an internal member would see it

`POST /roles/{roleId}/preview`

- Operation ID: `previewRole`
- 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. |
| `roleId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The preview; nothing was written but a throttled audit mark. | 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` |

## Re-apply the role's updated template as the caller's draft

`POST /roles/{roleId}/reapply-template`

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

"Template updated · Re-apply" (R09, S08): the template's current revision becomes the caller's draft of the role — the Contractor's projects kept — activated later with its impact; a document equal to the active one is adopted at once without a draft. A repeated call finds the draft it made.

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The role with the caller's draft of the re-applied template (or the adopted 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` |

## The Security & sign-in page — methods, team policies, 2FA, sessions and tokens

`GET /security`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The tenant's authentication policy with live counts; ETag is the policy 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` |

## Parse IdP metadata (file content or URL) and save it unless dryRun

`POST /security/saml/metadata`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The parsed entities; saved when dryRun is false. | application/json | `object` |
| 202 | A metadata URL is fetched by an operation; its result is a SamlMetadataPreview. |  |  |
| 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 | 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` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Start a test sign-in against the stored or a candidate configuration

`POST /security/saml/test`

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

Request body (application/json): `SamlTestStart`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | A pending test with the IdP redirect URL (top-level navigation). | 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 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The outcome of a test sign-in (kept 10 minutes)

`GET /security/saml/test/{testId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Pending, passed, failed or expired, with what the assertion carried. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Save session length and idle timeout for new sign-ins

`PUT /security/session-policy`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved policy; ETag is the new policy version. | 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 | 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` |

## End every session in the tenant except the caller's

`POST /security/sign-everyone-out`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts and the new epoch. | 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 | 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` |

## Save one method's dialog — Enabled, audience and settings

`PUT /security/sign-in-methods/{method}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved method row. | 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 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Dry run — the consequence of a method change before Save

`POST /security/sign-in-methods/{method}/validate`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The consequence sentence and the stranded accounts; 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` |
| 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` |

## Allow or turn off tokens and set their maximum lifetime

`PUT /security/token-policy`

- Operation ID: `setTokenPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-26

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved policy with the number of tokens revoked. | 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 | 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` |

## Save the tenant's two-factor policy and device-trust switches

`PUT /security/two-factor-policy`

- Operation ID: `setTwoFactorPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-24

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The saved policy with fresh counts; ETag is the new policy version. | 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 | 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` |

## Dry run — how many people the proposed policy makes enrol

`POST /security/two-factor-policy/validate`

- Operation ID: `validateTwoFactorPolicy`
- Call with: Session of the Youniton apps (app only)
- Feature: F-IDN-24

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

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

## Remind members without an authenticator — all of them, or the selected ones — once per cooldown

`POST /security/two-factor-reminders`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | How many were reminded and who was skipped why. | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Every settings group of the tenant the caller may read, with effective values, sources, bounds and pending versions

`GET /settings`

- Operation ID: `listSettingGroups`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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 readable groups; `validUntil` is the earliest of theirs. | 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 settings registry as the caller's scope sees it — groups, keys, types, bounds, labels, change semantics and editors

`GET /settings/schema`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The schema. | 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 settings group — effective values, defaults, bounds, sources and pending versions; ETag carries its version

`GET /settings/{group}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `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 settings group — a JSON Merge Patch of its keys with If-Match (null resets a key to its inherited value)

`PATCH /settings/{group}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `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; a shortened retention shows as pending. | 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 settings group change — the consequence sentences with the server's counts; nothing is written

`POST /settings/{group}/validate`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `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` |

## The tenant's pending, active and recently ended support requests (Admins)

`GET /support-access-requests`

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

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

## Approve the request; the window starts now

`POST /support-access-requests/{requestId}/approve`

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

Request body (application/json): `SupportDecisionNote`

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

## Deny the request

`POST /support-access-requests/{requestId}/deny`

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

Request body (application/json): `SupportDecisionNote`

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

## End an approved or active window now

`POST /support-access-requests/{requestId}/revoke`

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

Request body (application/json): `SupportDecisionNote`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The request with the revocation. | 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 tenant Admin's queue (or the operator's own proposals in a window)

`GET /support-change-proposals`

- Operation ID: `listSupportChangeProposals`
- Call with: Session of the Youniton apps (app only)
- Feature: F-PLT-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. |
| `filter[state]` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Proposals newest first. | 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 operator drafts an exact change of a proposal-class operation

`POST /support-change-proposals`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The draft with its before-snapshot and classification. | 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 operator discards a draft

`DELETE /support-change-proposals/{proposalId}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `proposalId` | path | string (uuid) | yes |  |
| `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 |
|---|---|---|---|
| 204 | The draft is 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` |

## The exact proposal — operation, target, before and after, digest, approvals, expiry

`GET /support-change-proposals/{proposalId}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `proposalId` | path | string (uuid) | yes |  |
| `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 proposal. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The operator revises a draft

`PATCH /support-change-proposals/{proposalId}`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `proposalId` | path | string (uuid) | yes |  |
| `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): `SupportProposalDraft`

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

## The proposing operator applies an approved change once, in the same live window

`POST /support-change-proposals/{proposalId}/activate`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The activated proposal; a repeat returns the stored receipt. | 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` |

## An Admin approves the exact change with a fresh strong tenant-bound stamp (optionally applies it)

`POST /support-change-proposals/{proposalId}/approve`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The approved (or activated) proposal. | 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` |

## An Admin rejects the exact change (same assurance as approval)

`POST /support-change-proposals/{proposalId}/reject`

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

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

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

## Freeze the payload and digest and ask the tenant's Admins (operator TOTP within 15 minutes)

`POST /support-change-proposals/{proposalId}/submit`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The proposed change with its digest and expiry. | 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` |

## The proposing operator withdraws a proposed or approved change

`POST /support-change-proposals/{proposalId}/withdraw`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The withdrawn proposal. | 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 teams of the tenant that show an icon or an image (R12) — the UI's map of team avatars

`GET /team-avatars`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | An internal member gets every team with an icon or an image; any other reader an empty list. Ids, kinds, icons and image tags only. | application/json | `object` |
| 401 | 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 teams as cards

`GET /teams`

- Operation ID: `listTeams`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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. |
| `q` | query | string | no | XM-1055 (R10) — only the teams whose name contains this text. |
| `page[number]` | query | integer | no |  |
| `page[size]` | query | integer | no |  |

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

## Create a team with an optional lead, initial members and projects to transfer

`POST /teams`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The team, and one outcome per project to transfer. | 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 a team that owns no projects

`DELETE /teams/{teamId}`

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

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

## The selected team's detail panel

`GET /teams/{teamId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The team, its first six members by joined date, its projects and its sign-in summary; the ETag is the team'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` |

## Rename a team

`PATCH /teams/{teamId}`

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

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

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

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

## Show the team's initial or an icon of the registry (R12); a replaced image is removed

`PUT /teams/{teamId}/avatar`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The team with its avatar; the ETag is the team's 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 team's avatar image for an img element of the tenant (R12)

`GET /teams/{teamId}/avatar/image`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `teamId` | path | string (uuid) | yes |  |
| `tenant` | query | string (uuid) | yes | The tenant id, checked like X-Kanso-Tenant (an img element cannot send headers). |
| `v` | query | string | no | The image tag of TeamAvatarView (the UI adds it so that a new image is a new address); the server ignores it. |
| `If-None-Match` | header | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The 256 px WebP image; a strong ETag; Cache-Control private, no-store. | image/webp | `string (binary)` |
| 304 | The image did not change (If-None-Match). |  |  |
| 401 | 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` |

## Upload the team's avatar image — scanned, the centre square stored as a 256 px WebP (R12)

`PUT /teams/{teamId}/avatar/image`

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

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

Request body (multipart/form-data, required): `object`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The team with its image avatar; the ETag is the team's 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 503 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Make a member the team's lead, or clear the lead

`PUT /teams/{teamId}/lead`

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

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

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

## Search a team's members

`GET /teams/{teamId}/members`

- Operation ID: `listTeamMembers`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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. |
| `teamId` | path | string (uuid) | yes |  |
| `q` | query | string | no | XM-992 (R11) — a substring of the name, or a prefix of the e-mail for a reader who sees e-mails. |
| `filter[role]` | query | string | no | XM-992 (R11) — 1–20 role ids, comma-separated; a member with any of them matches. |
| `sort` | query | string | no | XM-992 (R11) — the order; `-` is descending; ties go by the name, then the member id. |
| `limit` | query | integer | no | The page size (XM-992 — up to 100). |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of the matching members in the asked order, the match total, and the next page while there is one. | 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 existing internal members to a team

`POST /teams/{teamId}/members`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The members added and those already in the team. | 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 a member from a team

`DELETE /teams/{teamId}/members/{memberId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed (or not a member of the team). |  |  |
| 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` |

## Narrow a team's sign-in methods or enforce SAML single sign-on

`PUT /teams/{teamId}/sign-in-policy`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The team's effective policy; ETag is the new policy version. | 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` |
| 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 administration overview — counts, 2FA figure, projects subset and setup checklist

`GET /tenant`

- Operation ID: `getTenantOverview`
- Call with: Session of the Youniton apps (app only)
- Feature: F-TEN-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 overview read model. | 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` |

## Show a dismissed item again

`DELETE /tenant/setup-checklist/dismissals/{item}`

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

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

## Dismiss a checklist item that does not apply (Repositories connected only)

`PUT /tenant/setup-checklist/dismissals/{item}`

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

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

## Show the hidden setup checklist panel again ("Show setup checklist")

`DELETE /tenant/setup-checklist/hidden`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The updated checklist (hidden is false). | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Hide the setup checklist panel of the overview (it stays shown at 5 of 5 until an Admin hides it)

`PUT /tenant/setup-checklist/hidden`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The updated checklist (hidden is true). | 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` |
