# Discovery

Opportunities and their columns.

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

## The opportunity's detail — description, decision, interview notes, votes and the viewer's rights

`GET /opportunities/{opportunityId}`

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

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

## Change title, description, note, owner or confidence

`PATCH /opportunities/{opportunityId}`

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

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

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

## Record or amend the decision; with Build, link an existing ticket or create one (D-090)

`POST /opportunities/{opportunityId}/decision`

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

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The decided opportunity, its decision and, when one was created, 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` |
| 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` |

## Interview notes, newest first, 25 per page

`GET /opportunities/{opportunityId}/evidence`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of notes. | 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 an interview note as evidence

`POST /opportunities/{opportunityId}/evidence`

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

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

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

## Remove an interview note (its author or a manager)

`DELETE /opportunities/{opportunityId}/evidence/{evidenceId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed. |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change one's own interview note

`PATCH /opportunities/{opportunityId}/evidence/{evidenceId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The changed note. | 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 the caller's own reaction from an interview note (idempotent; XM-1786)

`DELETE /opportunities/{opportunityId}/evidence/{evidenceId}/reactions/{emoji}`

- Operation ID: `removeInterviewNoteReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DSC-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. |
| `opportunityId` | path | string (uuid) | yes |  |
| `evidenceId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The note as the caller now reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Add the caller's own reaction to an interview note (idempotent; XM-1786)

`PUT /opportunities/{opportunityId}/evidence/{evidenceId}/reactions/{emoji}`

- Operation ID: `addInterviewNoteReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DSC-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. |
| `opportunityId` | path | string (uuid) | yes |  |
| `evidenceId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The note as the caller now reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Reopen a resolved interview note (its author or a manager; idempotent; XM-1786)

`POST /opportunities/{opportunityId}/evidence/{evidenceId}/reopen`

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

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

## All the replies of an interview note, oldest first (XM-1786)

`GET /opportunities/{opportunityId}/evidence/{evidenceId}/replies`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The replies (at most 100). | 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` |

## Reply to an interview note (XM-1786)

`POST /opportunities/{opportunityId}/evidence/{evidenceId}/replies`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The reply. | 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 reply (its author or a manager; XM-1786)

`DELETE /opportunities/{opportunityId}/evidence/{evidenceId}/replies/{replyId}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed. |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change one's own reply (XM-1786)

`PATCH /opportunities/{opportunityId}/evidence/{evidenceId}/replies/{replyId}`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The changed reply. | 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 the caller's own reaction from a reply (idempotent; XM-1786)

`DELETE /opportunities/{opportunityId}/evidence/{evidenceId}/replies/{replyId}/reactions/{emoji}`

- Operation ID: `removeInterviewReplyReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DSC-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. |
| `opportunityId` | path | string (uuid) | yes |  |
| `evidenceId` | path | string (uuid) | yes |  |
| `replyId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The reply as the caller now reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Add the caller's own reaction to a reply (idempotent; XM-1786)

`PUT /opportunities/{opportunityId}/evidence/{evidenceId}/replies/{replyId}/reactions/{emoji}`

- Operation ID: `addInterviewReplyReaction`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DSC-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. |
| `opportunityId` | path | string (uuid) | yes |  |
| `evidenceId` | path | string (uuid) | yes |  |
| `replyId` | path | string (uuid) | yes |  |
| `emoji` | path | string | yes | The emoji, percent-encoded; a catalogue entry (F-WRK-38.R02). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The reply as the caller now reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Resolve an interview note (its author or a manager; idempotent; XM-1786)

`POST /opportunities/{opportunityId}/evidence/{evidenceId}/resolve`

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

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

## Move an opportunity to a stage and between neighbours (D-091)

`PUT /opportunities/{opportunityId}/position`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The new stage, rank and version. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client requests cited by an opportunity, newest first

`GET /opportunities/{opportunityId}/request-evidence`

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

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

## Link a help-desk request to an opportunity as evidence

`POST /opportunities/{opportunityId}/request-evidence`

- Operation ID: `linkRequestEvidence`
- 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. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `opportunityId` | path | string (uuid) | yes |  |

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The evidence as the actor reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Remove a request evidence (its author or a manager)

`DELETE /opportunities/{opportunityId}/request-evidence/{evidenceId}`

- Operation ID: `removeRequestEvidence`
- 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. |
| `opportunityId` | path | string (uuid) | yes |  |
| `evidenceId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Removed. |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Change the summary of one's own request evidence

`PATCH /opportunities/{opportunityId}/request-evidence/{evidenceId}`

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

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

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

## Withdraw the member's vote

`DELETE /opportunities/{opportunityId}/vote`

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

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

## Vote for the opportunity (one vote per member)

`PUT /opportunities/{opportunityId}/vote`

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

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

## The project's discovery board — summary, three columns with counts and their first cards

`GET /projects/{projectKey}/opportunities`

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

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

## Add an opportunity at the end of the Opportunities column

`POST /projects/{projectKey}/opportunities`

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

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | Created; Location /api/v1/opportunities/{id}. | 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 next cards of one board column ("Load more")

`GET /projects/{projectKey}/opportunity-columns/{stage}`

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

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of up to 100 cards. | 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` |
