---
title: "POST /workflows/{id}/run"
method: POST
path: "/workflows/{id}/run"
tags: ["workflows"]
---

# POST /workflows/{id}/run

`POST /workflows/{id}/run`

**Required scope:** automation:workflows:run<br/><br/>Creates an Execution for the Workflow.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `adminAccess` boolean

## Request body

- ExecutionInputsRequest
  - `input` object
  - `params` object
  - `uniqueQualifier` string

## Response `201`

- Execution
  - `id` string, uuid
  - `workflow` string, uuid, nullable — Executed Workflow
  - `labels` Labels
  - `state` 'RUNNING' | 'SUCCESS' | 'ERROR' | 'WAITING' | 'IDLE' | 'PAUSED' | 'DELAYED' | 'CANCELLED' — * `RUNNING` - RUNNING * `SUCCESS` - SUCCESS * `ERROR` - ERROR * `WAITING` - WAITING * `IDLE` - IDLE * `PAUSED` - PAUSED * `DELAYED` - DELAYED * `CANCELLED` - CANCELLED
  - `stateInfo` string, nullable
  - `input` object
  - `params` object
  - `startedAt` string, date-time
  - `endedAt` string, date-time, nullable
  - `runtime` integer, required — Calculate the runtime of an execution in seconds. If the Execution is not ended, runtime is calculated until now.
  - `trigger` string, nullable
  - `schedule` string, uuid, nullable
  - `eventTrigger` string, uuid, nullable
  - `task` string, required
  - `parentTaskExecution` string, uuid, required
  - `parentExecution` string, uuid, required
  - `result` object
  - `user` string, nullable
  - `title` string, required
  - `triggerType` string, required

## Other responses

- `202`
- `4XX`

---

[API](https://skmtc.net/dynatrace/apis/automation.md) · [All operations](https://skmtc.net/dynatrace/apis/automation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynatrace/automation/versions/0fe23f9b256b/schema)
