---
title: "Update stack compose file"
method: PUT
path: "/api/stacks/{stackName}"
tags: ["Stacks"]
---

# Update stack compose file

`PUT /api/stacks/{stackName}`

Overwrites the `compose.yaml` content for the specified stack. Requires `stack:edit` permission.

## Path parameters

- `stackName` string, required

## Headers

- `x-node-id` integer

## Request body

- object
  - `content` string, required — Full compose.yaml content.

## Response `200`

Stack saved.

- SuccessMessage
  - `message` string, required

## Other responses

- `400` — Invalid stack name or content.
- `403` — Insufficient permissions or license tier.
- `500` — Internal server error.

---

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