---
title: "Pull and recreate stack"
method: POST
path: "/api/stacks/{stackName}/update"
tags: ["Stacks"]
---

# Pull and recreate stack

`POST /api/stacks/{stackName}/update`

Pulls latest images and recreates containers (`docker compose pull && up -d`)
using atomic update with automatic rollback on failure.
Requires `stack:deploy` permission.

## Path parameters

- `stackName` string, required

## Headers

- `x-node-id` integer

## Response `200`

Update completed.

- object
  - `status` string, required
  - `healthGateId` string, nullable — Id of the post-update health gate observation started for this update, for use with the health-gate endpoint. Null when the health gate is disabled on the node.
  - `recheckWarning` string — Present when Compose succeeded but post-update image verification still reports an available update or could not fully verify clearance. Optional for older nodes.

## Other responses

- `403` — Insufficient permissions or license tier.
- `500` — Update failed.

---

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