# updateAssessmentAssignmentStatus

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

## Operation

| Method | URL |
|---|---|
| PATCH | https://api.thomas.co/v1/assessments/assignments/{id}/status |

| Field | Value |
|---|---|
| operationId | updateAssessmentAssignmentStatus |
| method | PATCH |
| server | https://api.thomas.co/v1 |
| path | /assessments/assignments/{id}/status |
| tags | `Assignments` |
| summary | Transition assignment status |
| badges | `{"name":"Owner"}`, `{"name":"Admin"}` |

## Request Parameters

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

## Request Body

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

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Assignment status updated | #/components/schemas/AssignmentResponseDto |
| 400 | Invalid status transition | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token | #/components/schemas/ApiErrorResponseDto |
| 403 | Insufficient role — owner or admin required | #/components/schemas/ApiErrorResponseDto |
| 404 | Assignment not found | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Invalid status transition",
  "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": "Assignment not found",
  "error": "ASSESSMENT_ASSIGNMENT_NOT_FOUND"
}
```
