---
title: "POST /preview-gateway/upgrade"
method: POST
path: "/preview-gateway/upgrade"
tags: ["Preview Gateway"]
---

# POST /preview-gateway/upgrade

`POST /preview-gateway/upgrade`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/preview-gateway/upgrade`
- Auth: HTTP bearer

## Request body

- UpgradeRequest
  - `image` string, required: Image reference to pull and run (e.g. an immutable `ghcr.io/gotempsh/temps-preview-gateway@sha256:…` reference). Empty resets to default.

## Response `204`

Gateway upgraded

## Other responses

- `409`: The gateway is disabled in settings, or another gateway operation is still running
- `500`: Gateway upgrade failed

## Changes

- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `409` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the non-success response with the status `409`
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 1 warning, 1 info
  - removed the optional property `status` from the response with the `500` status
  - removed the non-success response with the status `409`
- **2026-10-03** `de8387218c0b`: 1 info
  - added the non-success response with the status `409`
- **2026-09-23** `f4efc4d5c7b7`: 1 info
  - added the optional property `status` to the response with the `500` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/preview-gateway/upgrade/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
