---
title: "Updates a migration state"
method: PUT
path: "/migration-jobs/{job_number}/state"
tags: ["private"]
---

# Updates a migration state

`PUT /migration-jobs/{job_number}/state`

## Request

- Base URL: `/v1` (relative, and the document’s source URL is not known)
- URL: `/v1/migration-jobs/{job_number}/state`
- Auth: API key in header `Authorization`

Updates the state of a specific migration job using the unique job number

## Path parameters

- `job_number` integer, required

## Request body

- object
  - `state` 'approved' | 'rejected'

## Response `204`

Successful state change

## Other responses

- `400`: Invalid state supplied
- `401`: Request is not authenticated
- `403`: Request is not authorised
- `404`: Migration job not found
- `409`: State change is not allowed
- `500`: Generic error response

---

[API](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service/revisions/5dddd1472e20?raw)
