---
title: "Update the topic state"
method: PUT
path: "/topics/{id}/state/{state}"
tags: ["Private"]
---

# Update the topic state

`PUT /topics/{id}/state/{state}`

Updates a topic's state against the next nested object. If state is equal to 'published', than the next object copies over to current object

## Path parameters

- `id` string, required
- `state` string, required

## Response `200`

Success

## Other responses

- `400` — The request was invalid.
- `401` — Failed to process the request due to being unauthorised.
- `404` — The specified resource was not found.
- `500` — Failed to process the request due to an internal error.

---

[API](https://skmtc.net/office-of-national-statistics/apis/topic-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/topic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/topic-api/revisions/84b8391c5030/schema)
