---
title: "Install a release and restart the server."
method: POST
path: "/settings/update"
tags: ["Settings"]
---

# Install a release and restart the server.

`POST /settings/update`

## Request

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

Returns as soon as the attempt is accepted: the download and swap run in the
background and the process then exits so its supervisor restarts it on the
new binary. Poll `GET /settings/update` for progress — after the restart,
`last_attempt` carries the outcome.

## Request body

- StartUpdateRequest: Optional pin for the version to install.
  - `version` string, nullable: Release tag to install (e.g. `v0.2.0`). Omit to take the newest release on the channel this install already tracks.

## Response `202`

Update accepted; the server will restart

- StartUpdateResponse: Acknowledgement that an update was accepted and is running.
  - `current_version` string, required: Version the server is running as it accepts this request.
  - `estimated_restart_secs` integer, required: How long to allow for the server to come back before treating the restart as failed. `0` when nothing restarts.
  - `message` string, required
  - `restart_mode` 'automatic' | 'manual', required: `automatic` (temps restarts itself) or `manual` (installed only).

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: Update unavailable or already running
- `501`: This process cannot apply updates

## 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 `501` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the optional property `status` to the response with the `409` status
  - added the optional property `status` to the response with the `501` status
- **2026-10-05** `63a80791dc58`: 2 warning
  - removed the optional property `status` from the response with the `409` status
  - removed the optional property `status` from the response with the `501` status
- **2026-09-23** `f4efc4d5c7b7`: 2 info
  - added the optional property `status` to the response with the `409` status
  - added the optional property `status` to the response with the `501` status
- **2026-09-07** `5ab851bb63bf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/update/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)
