---
title: "Runs the published version of this Runbook"
method: POST
path: "/{spaceId}/runbooks/{runbookId}/run"
tags: ["Runbooks"]
---

# Runs the published version of this Runbook

`POST /{spaceId}/runbooks/{runbookId}/run`

## Path parameters

- `spaceId` string, required
- `runbookId` string, required

## Request body

- RunRunbookCommandV1
  - `ChangeRequestSettings` ChangeRequestSettings[]
    - `Type` 'ServiceNow' | 'JiraServiceManagement'
  - `Comments` string
  - `DebugMode` string
  - `EnvironmentId` string
  - `EnvironmentIds` string[]
  - `ExcludedMachineIds` string[]
  - `ExcludedTargetTagIds` string[]
  - `FailTargetDiscovery` boolean
  - `ForcePackageDownload` boolean
  - `FormValues` object
  - `Priority` string
  - `ProjectId` string
  - `QueueTime` string, date-time
  - `QueueTimeExpiry` string, date-time
  - `RunbookId` string, required
  - `RunbookSnapshotNameOrId` string
  - `SkipActions` string[]
  - `SpaceId` string, required
  - `SpecificMachineIds` string[]
  - `SpecificTargetTagIds` string[]
  - `TenantId` string
  - `TenantIds` string[]
  - `TenantTagNames` string[]
  - `UseDefaultSnapshot` boolean
  - `UseGuidedFailure` boolean

## Response `200`

OK

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/835047dab520/schema)
