# rejectPartnerAccessRequest

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

## Operation

| Method | URL |
|---|---|
| POST | https://staging-api.thomas.co/v1/partner-access-requests/{grantId}/reject |

| Field | Value |
|---|---|
| operationId | rejectPartnerAccessRequest |
| method | POST |
| server | https://staging-api.thomas.co/v1 |
| path | /partner-access-requests/{grantId}/reject |
| tags | `Partner access governance` |
| summary | Reject a pending Partner access request for your tenant |
| badges | None |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| grantId | path | true | string |  |

## Request Body

| Content type | Schema refs |
|---|---|
| application/json | #/components/schemas/PartnerAccessRejectionDto |

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | The settled Grant, the reviewed version and fingerprint it refused, and the Owner who refused it. Narrower than the approval receipt by construction: no Service Membership, because a refusal settles none. | #/components/schemas/PartnerAccessRejectionResultDto |
| 400 | Invalid UUID format for grantId | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | The caller is not an eligible owner of the tenant this request names, or is not a person at all (PARTNER_APPROVER_NOT_ELIGIBLE, AUTH_PRINCIPAL_NOT_HUMAN) | #/components/schemas/ApiErrorResponseDto |
| 404 | No refusable access request exists at this id — it never existed, it belongs to another tenant, or it has already been approved (PARTNER_ACCESS_REQUEST_NOT_FOUND) | #/components/schemas/ApiErrorResponseDto |
| 409 | The request is no longer the exact version reviewed, or the refusal conflicted with a concurrent decision and rolled back (PARTNER_ACCESS_REJECTION_CONFLICT, PARTNER_ACCESS_REQUEST_VERSION_MISMATCH, PARTNER_ACCESS_REQUEST_FINGERPRINT_MISMATCH) | #/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"
}
```
