GET
/
api
/
task_run_states
/
{id}

Headers

x-prefect-api-version
string

Path Parameters

id
string
required

The task run state id

Response

200 - application/json

Represents the state of a run.

id
string
type
enum<string>
required

Enumeration of state types.

Available options:
SCHEDULED,
PENDING,
RUNNING,
COMPLETED,
FAILED,
CANCELLED,
CRASHED,
PAUSED,
CANCELLING
name
string | null
timestamp
string
message
string | null
data
any | null

Data associated with the state, e.g. a result. Content must be storable as JSON.

state_details
object