Task Runs
Create Task Run
Create a task run. If a task run with the same flow_run_id, task_key, and dynamic_key already exists, the existing task run will be returned.
If no state is provided, the task run will be created in a PENDING state.
post/api/task_runs/
Headers
x-prefect-api-versionstring
Request body
Example request
{
"name": "my-task-run",
"tags": [
"tag-1",
"tag-2"
]
}Response
Successful Response
Example response
{
"name": "my-task-run",
"tags": [
"tag-1",
"tag-2"
],
"state": {
"message": "Run started"
}
}