# requestPersonalityPdfExport

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

## Operation

| Method | URL |
|---|---|
| POST | https://api.thomas.co/v1/personality/{individualId}/pdf |

| Field | Value |
|---|---|
| operationId | requestPersonalityPdfExport |
| method | POST |
| server | https://api.thomas.co/v1 |
| path | /personality/{individualId}/pdf |
| tags | `Personality` |
| summary | Request a projection-respecting Personality PDF export for an individual |
| badges | None |

## Request Parameters

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

## Request Body

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

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 202 | PDF generation job enqueued | #/components/schemas/PersonalityPdfResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Cannot export another user's result | #/components/schemas/ApiErrorResponseDto |
| 404 | Flag off / no personality result / withheld (neutral 404) | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 401 example

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

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "Cannot export another user's result",
  "error": "ASSESSMENT_FORBIDDEN"
}
```

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "No personality result found for this individual",
  "error": "ASSESSMENT_PROFILE_NOT_FOUND"
}
```
