---
title: "Publish an image"
method: POST
path: "/images/{image_id}/publish"
tags: ["image"]
---

# Publish an image

`POST /images/{image_id}/publish`

Requests an image publishing via the static file publisher, which puts the S3 objects for this image to the static bucket. This call sets the image state to 'publishing'.

## Path parameters

- `image_id` string, required

## Response `204`

The image was successfully published and a message queued to Static file publisher.

## Other responses

- `400` — Invalid request, image id was incorrect
- `401` — User or service is not authenticated
- `403` — Unauthorised to publish image or it is in wrong state to be published
- `404` — Requested item cannot be found
- `500` — Failed to process the request due to an internal error

---

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