# declineOrgSharingReuseRequest

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| POST | https://staging-api.thomas.co/v1/sharing/reuse-requests/{organisationId}/{assessmentType}/decline |

| Field | Value |
|---|---|
| operationId | declineOrgSharingReuseRequest |
| method | POST |
| server | https://staging-api.thomas.co/v1 |
| path | /sharing/reuse-requests/{organisationId}/{assessmentType}/decline |
| tags | `Sharing` |
| summary | Decline one organisation's request to reuse an existing result |
| badges | None |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| organisationId | path | true | string:uuid | The organisation whose request is being declined (a tenant id) |
| assessmentType | path | true | string | The assessment whose request is being declined |

## Request Body

None.

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 204 | The request is resolved. No grant was created and no body is returned. |  |
| 400 | organisationId is not a valid UUID, or assessmentType is not one of the four in-scope instruments | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 404 | No actionable reuse request. Deliberately ONE code and ONE status for every cause — the organisation does not exist, the caller is not a member of it, the request was already resolved, or there is no completed result. Splitting these would make the route an organisation-existence and relationship oracle (AD-4; D39 kept the FR-41 limb). | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Validation failed (uuid is expected)",
  "error": "HTTP_BAD_REQUEST"
}
```

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "That request is no longer waiting on you.",
  "error": "ORG_SHARING_REUSE_REQUEST_NOT_FOUND"
}
```
