---
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).

---

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