---
title: "Trigger self-update"
method: POST
path: "/api/system/update"
tags: ["Health"]
---

# Trigger self-update

`POST /api/system/update`

Instructs this Sencho instance to pull the update image and recreate its own container.
An optional release version in the request body drives semver repinning; floating tags are pulled without rewriting the compose file.
Digest and unresolved pins are rejected with 409 before any pull runs.
Returns 202 immediately; the actual update happens asynchronously after the response is sent.
Requires the instance to be deployed via Docker Compose with the Docker socket mounted.

## Request body

- object
  - `targetVersion` string — Release version to update to (valid semver).

## Response `202`

Update initiated.

- object
  - `message` string

## Other responses

- `400` — Invalid release version in request body.
- `401` — Authentication required. Provide a valid Bearer token.
- `409` — Update blocked because the compose image cannot be repinned automatically.
- `503` — Self-update not available (not running in Docker Compose).

## Changes

- **2026-07-07** `398bd5a72b2b` — 3 info
  - added optional request body
  - added the non-success response with the status `400`
  - added the non-success response with the status `409`
- **2026-06-04** `d58cf9d6195b` — 2 info
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `401`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `503`
- **2026-04-05** `7464894ea582` — 2 warning, 2 info
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `401`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `503`
  - removed the `PRO_REQUIRED` enum value from the `code` response property for the response status `401`
  - removed the `PRO_REQUIRED` enum value from the `code` response property for the response status `503`
- **2026-04-03** `6ae05a2b2286` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/system/update/post.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/bebbb1754cdc/schema)
