---
updatedAt: 2026-05-28T08:16:45.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# Force Run

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.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Comment": {
        "description": "An optional explanation for why run action was done.",
        "properties": {
          "comment": {
            "default": "",
            "description": "The reason.",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "API-Key": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Scalr IACP API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "title": "Scalr IACP API",
    "version": "unversioned"
  },
  "openapi": "3.0.0",
  "paths": {
    "/runs/{run}/actions/force": {
      "post": {
        "description": "Cancel all previous runs in pending or waiting for confirmation statuses.\nIf the workspace is locked by a finished run, the lock will be automatically\nremoved to allow the forced run to proceed.\n",
        "operationId": "force_run",
        "parameters": [
          {
            "description": "The ID of the run to force.",
            "in": "path",
            "name": "run",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Comment"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successfully forced a run."
          },
          "404": {
            "description": "Run not found, or user unauthorized to perform action."
          },
          "409": {
            "description": "Workspace force_latest_run enabled or status is not pending. Force not allowed."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "Force Run",
        "tags": [
          "runs"
        ],
        "x-resource": "Run",
        "x-service": "tf-api"
      }
    }
  },
  "security": [
    {
      "API-Key": []
    }
  ],
  "servers": [
    {
      "url": "https://{Domain}/api/iacp/v3",
      "variables": {
        "Domain": {
          "default": "example.scalr.io",
          "description": "Domain where Scalr is hosted"
        }
      }
    }
  ]
}
```

# Sibling pages

* [List Runs](https://docs.scalr.io/scalr/reference/get_runs.md)
* [Create a Run](https://docs.scalr.io/scalr/reference/create_run.md)
* [List Runs Queue](https://docs.scalr.io/scalr/reference/get_runs_queue.md)
* [Get a Run](https://docs.scalr.io/scalr/reference/get_run.md)
* [Apply a Run](https://docs.scalr.io/scalr/reference/confirm_run.md)
* [Cancel a Run](https://docs.scalr.io/scalr/reference/cancel_run.md)
* [Discard a Run](https://docs.scalr.io/scalr/reference/discard_run.md)
* [Download a Policy Input](https://docs.scalr.io/scalr/reference/download_policy_input.md)