# bulkAssignCandidateAssessments

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

## Operation

| Method | URL |
|---|---|
| POST | https://dev-cxi-api.thomas.co/v1/candidates/assessments/bulk-assign |

| Field | Value |
|---|---|
| operationId | bulkAssignCandidateAssessments |
| method | POST |
| server | https://dev-cxi-api.thomas.co/v1 |
| path | /candidates/assessments/bulk-assign |
| tags | `Assignments` |
| summary | Bulk-assign an assessment to many candidates (two-tier, fail-closed) |
| badges | `{"name":"Owner"}`, `{"name":"Admin"}` |

## Request Parameters

None.

## Request Body

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

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Best-effort per-item results with a summary tally | #/components/schemas/CandidateBulkAssignResponseDto |
| 400 | Invalid request payload | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token | #/components/schemas/ApiErrorResponseDto |
| 403 | Insufficient role — owner or admin required | #/components/schemas/ApiErrorResponseDto |
| 404 | One or more targets are missing, tombstoned, or confidential and out of the caller circle | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Validation failed",
  "error": "HTTP_BAD_REQUEST"
}
```

### Response 401 example

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

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "Insufficient role privileges",
  "error": "AUTH_INSUFFICIENT_ROLE"
}
```

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "Individuals not found in this organisation",
  "error": "ASSIGNMENT_INDIVIDUAL_NOT_FOUND"
}
```
