# Help-desk intake

Let your client's own system create requests, read their status, reply and upload files — with a help-desk service token.

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

## The current request form of the connection's project

`GET /help-desk/form`

- Operation ID: `getIntakeForm`
- Call with: Help-desk service token, ability `requests:read or requests:create`
- Feature: F-HLP-05

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Categories, fields, intro and accepted file types, without internal mapping. | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The requests that the connection can read, oldest update first

`GET /help-desk/requests`

- Operation ID: `listIntakeRequests`
- Call with: Help-desk service token, ability `requests:read`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `changeCursor` | query | string | no | The meta.changeCursor of the previous answer (help desk §3.12). The only cursor of this list; it pages and it polls. Not with updatedSince. |
| `updatedSince` | query | string (date-time) | no | Starts a first sync; inclusive. |
| `status` | query | string | no |  |
| `externalReference` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 50, oldest change first, without the changes of the last 30 seconds (the settle window). | 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 | 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` |

## Create a request from the client's system

`POST /help-desk/requests`

- Operation ID: `createIntakeRequest`
- Call with: Help-desk service token, ability `requests:create`
- Feature: F-HLP-05

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A request with the same external reference and the same body exists; it is returned. | application/json | `object` |
| 201 | The new request. | 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` |
| 413 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One request as the connection reads it

`GET /help-desk/requests/{requestKey}`

- Operation ID: `getIntakeRequest`
- Call with: Help-desk service token, ability `requests:read`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `requestKey` | path | string | yes |  |

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

## Redirect to a 60-second signed URL of a file that the connection can read

`GET /help-desk/requests/{requestKey}/files/{fileId}/download`

- Operation ID: `downloadIntakeRequestFile`
- Call with: Help-desk service token, ability `requests:read`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `requestKey` | path | string | yes |  |
| `fileId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 302 | Location is a signed URL valid 60 seconds, disposition attachment; Cache-Control no-store, Referrer-Policy no-referrer. |  |  |
| 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` |

## The client-visible messages, oldest first

`GET /help-desk/requests/{requestKey}/messages`

- Operation ID: `listIntakeRequestMessages`
- Call with: Help-desk service token, ability `requests:read`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `requestKey` | path | string | yes |  |

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

## Reply on a request from the client's system

`POST /help-desk/requests/{requestKey}/messages`

- Operation ID: `postIntakeRequestMessage`
- Call with: Help-desk service token, ability `requests:reply`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `requestKey` | path | string | yes |  |

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

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

## Withdraw a request that this connection created

`POST /help-desk/requests/{requestKey}/withdraw`

- Operation ID: `withdrawIntakeRequest`
- Call with: Help-desk service token, ability `requests:reply`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `requestKey` | path | string | yes |  |

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

## Start an upload for a new request or a reply (one presigned PUT)

`POST /help-desk/uploads`

- Operation ID: `startIntakeUpload`
- Call with: Help-desk service token, ability `files:upload`
- Feature: F-HLP-05

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The pending file with its presigned PUT, valid 15 minutes (strategy single). | 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` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Complete an upload of this connection; the scan starts

`POST /help-desk/uploads/{fileId}/complete`

- Operation ID: `completeIntakeUpload`
- Call with: Help-desk service token, ability `files:upload`
- Feature: F-HLP-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `fileId` | path | string (uuid) | yes |  |

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

## The tenant's help-desk connections

`GET /help-desk/connections`

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

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

## Connect a client organisation's system to one project

`POST /help-desk/connections`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new connection, without a token. | 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` |

## One connection with its tokens (never secrets)

`GET /help-desk/connections/{connectionId}`

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

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

## Change a connection's abilities, scope, ranges, limits, webhook, role or name

`PATCH /help-desk/connections/{connectionId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The changed connection. | 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` |
| 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 token calls and webhook deliveries until resumed

`POST /help-desk/connections/{connectionId}/pause`

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

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

## Resume a paused connection

`POST /help-desk/connections/{connectionId}/resume`

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

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

## End a connection and revoke its tokens

`POST /help-desk/connections/{connectionId}/revoke`

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

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

## Issue the connection's first token; the secret is shown once

`POST /help-desk/connections/{connectionId}/tokens`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The token and its plaintext secret (only now). | 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 /help-desk/connections/{connectionId}/tokens/rotate`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new token and its plaintext secret (only now). | 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 at once

`DELETE /help-desk/connections/{connectionId}/tokens/{tokenId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Revoked; the next call with it answers 401. |  |  |
| 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` |

## Send a ping to the connection's webhook endpoint

`POST /help-desk/connections/{connectionId}/webhook-test`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The outcome of the test delivery. | 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` |

## Erase an external reporter's data on every request of the tenant

`POST /help-desk/reporter-erasures`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 202 | The erasure operation; poll it at its Location. | 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` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The project's request form (internal view)

`GET /projects/{projectKey}/help-desk/form`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The current version, with an ETag of the version. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Save the whole form as a new version

`PUT /projects/{projectKey}/help-desk/form`

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

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

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

## Turn the request form on or off

`PUT /projects/{projectKey}/help-desk/form/enabled`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The form with its new state. | 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` |

## The mails that wait for a triager

`GET /projects/{projectKey}/help-desk/held-mail`

- Operation ID: `listHeldHelpDeskMail`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of held mail. | 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` |

## Release a held mail into a request, or reject it

`POST /projects/{projectKey}/help-desk/held-mail/{mailId}/decision`

- Operation ID: `decideHeldHelpDeskMail`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `mailId` | path | string (uuid) | yes |  |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Decided. | 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 project's help-desk mailboxes

`GET /projects/{projectKey}/help-desk/mailboxes`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The mailboxes. | 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 mailbox for the project

`POST /projects/{projectKey}/help-desk/mailboxes`

- Operation ID: `createHelpDeskMailbox`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

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

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

## Turn a mailbox on or off (active or paused)

`PUT /projects/{projectKey}/help-desk/mailboxes/{mailboxId}/status`

- Operation ID: `setHelpDeskMailboxStatus`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-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. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `mailboxId` | path | string (uuid) | yes |  |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The mailbox with its new status. | 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 project's triagers (the choices of a default triage owner)

`GET /projects/{projectKey}/help-desk/triagers`

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

XM-1285 (owner, 22 Nov 2026: H5): the active internal members for whom triage_requests answers yes on the project, in name order — the choices of a category's defaultTriageOwnerId and of helpdesk.defaultTriageOwner. An internal reader who may view the project.

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

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

## The project's triage queue

`GET /projects/{projectKey}/requests`

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

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `projectKey` | path | string | yes |  |
| `view` | query | string | no |  |
| `impact` | query | array of string | no |  |
| `channel` | query | array of string | no |  |
| `category` | query | array of string | no |  |
| `serviceLevel` | query | array of string | no | XM-1280 (owner §223 add. 46): a set; on_track, paused and none for the design's filter row. G-HDQ-02 (owner §230 add. 102): met — no clock runs and at least one clock stopped, in any state that the view holds; the other values match open requests only. |
| `state` | query | array of string | no | G-HDQ-01 (owner §230 add. 102, the queue's Status filter): a set of request states, ANDed with the view (use view=all to filter by state only). |
| `owner` | query | array of string | no | XM-1280 (owner §223 add. 46): a set of member ids; `none` is "No owner". |
| `q` | query | string | no |  |
| `sort` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 25. | 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` |

## Log a request for the project's client

`POST /projects/{projectKey}/requests`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new request (internal view). | 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` |

## Counts per queue view, capped at 1,000

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts. | 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 Service levels tab's summary (XM-1006)

`GET /projects/{projectKey}/requests/service-levels`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The open requests by clock state and the 30-day met share. | 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` |

## One request with its internal view

`GET /requests/{requestKey}`

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

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

## Accept a request into a new ticket

`POST /requests/{requestKey}/accept`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The accepted request and the new ticket's key. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## What the accept and merge dialogs propose (the files to copy, the mapped custom-field values)

`GET /requests/{requestKey}/accept-proposal`

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

Owner, 23 Nov 2026 (H1 rest): R03 and R05 need data that the request view does not hold in Work's terms. The files are the request's files that scanned clean (the dialogs choose all of them by default). Each custom field is a form field of the request's form version that maps to a custom field of the project's current field set and has a value; the value is in Work's `customFields` shape (text, a number, a boolean, an option id or a list of option ids). A form option matches a custom-field option by its label, lower-case and trimmed (the rule of `KindToTypeMapping`). Needs `triage_requests` (F-HLP-07.R01).

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

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

## Ask the client for more information and pause the request

`POST /requests/{requestKey}/ask-for-information`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The request, now waiting for the client. | 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` |

## Merge a request into an existing ticket

`POST /requests/{requestKey}/merge`

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

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

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

## Every message of a request with internal notes, oldest first

`GET /requests/{requestKey}/messages`

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

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

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

## Reply to the client or add an internal note

`POST /requests/{requestKey}/messages`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The request's internal view with the new message. | 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` |

## Replace a message's text with "This message was redacted."

`POST /requests/{requestKey}/messages/{messageId}/redact`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The redacted message. | 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 opportunities that cite a request, for the request panel

`GET /requests/{requestKey}/opportunities`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | At most 10 opportunities that the reader can see. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Reject a request with a reason the client sees

`POST /requests/{requestKey}/reject`

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

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

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

## Claim, assign or clear the triage owner

`PUT /requests/{requestKey}/triage-owner`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The request's internal view. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The tenant's help-desk settings group

`GET /settings/helpdesk`

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

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

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

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

`PATCH /settings/helpdesk`

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

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

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

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