---
title: "Apply a Run"
method: POST
path: "/runs/{run}/actions/apply"
tags: ["runs"]
---

# Apply a Run

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

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/runs/{run}/actions/apply`
- Auth: HTTP bearer

Apply a run that is paused waiting for confirmation after a plan.

This includes runs in the `planned` and `policy_checked` states.
This action is only required for runs that can't be auto-applied.

## Path parameters

- `run` string, required

## Request body

- ConfirmRequest: A request to confirm a run. Includes optional time when apply should be queued.
  - `apply-at` string, date-time, nullable: The UTC datetime at which the Apply should be queued.
  - `comment` string: The reason.

## Response `202`

Successfully queued an apply request.

## Other responses

- `404`: Run not found, or user unauthorized to perform action.
- `409`: Run was not paused for confirmation. Apply not allowed.
- `4XX`: Client error.
- `5XX`: Server error.

---

[API](https://skmtc.dev/scalr/apis/scalr-iacp-api.md) - [All operations](https://skmtc.dev/scalr/apis/scalr-iacp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scalr/apis/scalr-iacp-api/revisions/d3e1dc85657a?raw)
