Automations
Create Automation
API Reference
- Overview
- Python SDK Overview
- Settings reference
- REST API
- REST API overview
- Cloud API
- Server API
- Server API Overview
- Root
- Flows
- Flow Runs
- Task Runs
- Flow Run States
- Task Run States
- Deployments
- SavedSearches
- Logs
- Concurrency Limits
- Concurrency Limits V2
- Block types
- Block documents
- Work Pools
- Task Workers
- Work Queues
- Artifacts
- Block schemas
- Block capabilities
- Collections
- Variables
- GETCreate Csrf Token
- Events
- Automations
- Admin
- CLI Reference
Automations
Create Automation
Create an automation.
For more information, see https://docs.prefect.io/v3/automate.
POST
/
api
/
automations
{
"name": "<string>",
"description": "",
"enabled": true,
"trigger": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"match": {},
"match_related": {},
"after": [
"<string>"
],
"expect": [
"<string>"
],
"for_each": [
"<string>"
],
"posture": "Reactive",
"threshold": 123,
"within": 123
},
"actions": [
{
"type": "do-nothing"
}
],
"actions_on_trigger": [
{
"type": "<string>"
}
],
"actions_on_resolve": [
{
"type": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
Headers
Body
application/json
Response
201
application/json
Successful Response
The response is of type object
.
Was this page helpful?
{
"name": "<string>",
"description": "",
"enabled": true,
"trigger": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"match": {},
"match_related": {},
"after": [
"<string>"
],
"expect": [
"<string>"
],
"for_each": [
"<string>"
],
"posture": "Reactive",
"threshold": 123,
"within": 123
},
"actions": [
{
"type": "do-nothing"
}
],
"actions_on_trigger": [
{
"type": "<string>"
}
],
"actions_on_resolve": [
{
"type": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}