---
title: "Force Run"
method: POST
path: "/runs/{run}/actions/force"
tags: ["runs"]
---

# Force Run

`POST /runs/{run}/actions/force`

Cancel all previous runs in pending or waiting for confirmation statuses.
If the workspace is locked by a finished run, the lock will be automatically
removed to allow the forced run to proceed.

## Path parameters

- `run` string, required

## Request body

- Comment — An optional explanation for why run action was done.
  - `comment` string — The reason.

## Response `202`

Successfully forced a run.

## Other responses

- `404` — Run not found, or user unauthorized to perform action.
- `409` — Workspace force_latest_run enabled or status is not pending. Force not allowed.
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
