# bulkAssignColleagueManager

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

## Operation

| Method | URL |
|---|---|
| POST | https://api.thomas.co/v1/colleagues/bulk/assign-manager |

| Field | Value |
|---|---|
| operationId | bulkAssignColleagueManager |
| method | POST |
| server | https://api.thomas.co/v1 |
| path | /colleagues/bulk/assign-manager |
| tags | `People Administration` |
| summary | Bulk assign manager to colleagues |
| badges | `{"name":"Admin"}`, `{"name":"Owner"}` |

## Request Parameters

None.

## Request Body

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

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Bulk assign results with per-item status | #/components/schemas/BulkAssignManagerResponseDto |
| 400 | Validation error (e.g., >100 IDs, empty array) | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Insufficient role — admin or owner required | #/components/schemas/ApiErrorResponseDto |
| 404 | Manager not found (IDENTITY_COMPANY_INDIVIDUAL_NOT_FOUND) | #/components/schemas/ApiErrorResponseDto |
| 422 | Manager is archived (IDENTITY_MANAGER_ARCHIVED) or self-assignment | #/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": "Manager not found",
  "error": "IDENTITY_COMPANY_INDIVIDUAL_NOT_FOUND"
}
```

### Response 422 example

```json
{
  "statusCode": 422,
  "message": "Manager is archived",
  "error": "IDENTITY_MANAGER_ARCHIVED"
}
```
