---
title: "Stop a running Stack"
method: POST
path: "/stacks/{id}/stop"
tags: ["stacks"]
---

# Stop a running Stack

`POST /stacks/{id}/stop`

Stop a running Stack.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Query parameters

- `endpointId` integer, required

## Response `200`

Success

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — Not found
- `409` — Conflict
- `500` — Server error

## Changes

> 21 revisions in range; 6 could not be searched.

- **2026-07-22** `b84d30fccc3b` — 1 info
  - added the optional property `GitConfig/allOf[#/components/schemas/gittypes.RepoConfig]/Authentication/allOf[#/components/schemas/gittypes.GitAuthentication]/GitCredentialID` to the response with the `200` status

[Change history](https://skmtc.dev/portainer/apis/portainerce-api/changes/stacks/:id/stop/post.md)

---

[API](https://skmtc.dev/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.dev/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/portainer/portainerce-api/revisions/6d8f5cab4e5a/schema)
