---
title: "Cancel deployment"
method: POST
path: "/applications/v1/deployments/{id}/cancel"
tags: ["Applications Deployments"]
---

# Cancel deployment

`POST /applications/v1/deployments/{id}/cancel`

Cancels a running deployment after verifying that the referenced project belongs to the authenticated organization. Use this when a build is stuck, misconfigured, or no longer needed.

## Path parameters

- `id` string, required

## Request body

- object
  - `projectId` string, required — Project ID used to verify access to the deployment

## Response `200`

Deployment canceled successfully

## Other responses

- `400` — Deployment ID or project ID is missing
- `401` — Invalid API key
- `403` — API key does not have access to compute service
- `404` — Project not found

---

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