POST
/
api
/
automations

Headers

x-prefect-api-version
string

Body

application/json
actions
object[]
required

The actions to perform when this Automation triggers

name
string
required

The name of this automation

trigger
object
required

The criteria for which events this Automation covers and how it will respond to the presence or absence of those events

actions_on_resolve
object[]

The actions to perform when an Automation goes into a resolving state

actions_on_trigger
object[]

The actions to perform when an Automation goes into a triggered state

description
string
default:

A longer description of this automation

enabled
boolean
default:
true

Whether this automation will be evaluated

owner_resource
string | null

The resource to which this automation belongs

Response

201 - application/json
actions
object[]
required

The actions to perform when this Automation triggers

created
string | null
required
id
string
required
name
string
required

The name of this automation

trigger
object
required

The criteria for which events this Automation covers and how it will respond to the presence or absence of those events

updated
string | null
required
actions_on_resolve
object[]

The actions to perform when an Automation goes into a resolving state

actions_on_trigger
object[]

The actions to perform when an Automation goes into a triggered state

description
string
default:

A longer description of this automation

enabled
boolean
default:
true

Whether this automation will be evaluated