Create automation
Creates a new automation definition.
Request body
Example request
{
"id": "nightly-deps",
"name": "Nightly dependency update",
"description": "Keeps dependencies fresh.",
"environment_id": "daytona-smoke",
"target": {
"repo": "acme/my-app",
"branch": "feature/foo",
"tag": "v1.2.3"
},
"workflow": "dependency-update",
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}Response
Automation created
Example response
{
"id": "nightly-deps",
"revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"name": "Nightly dependency update",
"description": "Keeps dependencies fresh.",
"environment_id": "daytona-smoke",
"target": {
"repo": "acme/my-app",
"branch": "feature/foo",
"tag": "v1.2.3"
},
"workflow": "dependency-update",
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}Changes
Changed in 4 of the 134 revisions of this API.947
- ▲
added the new required request property
environment_idnew-required-request-property
- ○
added the required property
environment_idto the response with the201statusresponse-required-property-added
- ○
added the required property
last_errorto the response with the201statusresponse-required-property-added
- ▲
- ▲
added the new required request property
workflownew-required-request-property
- ▲
the
targetrequest property type/format changed fromobject/to/request-property-type-changed
- ▲
added
GitRunTargetNoneRunTargetFolderRunTargetto thetargetresponse propertyoneOflist for the response status201response-property-one-of-added
- ▲
the
targetresponse's property type/format changed fromobject/to/for status201response-property-type-changed
- ▲
removed the required property
target/reffrom the response with the201statusresponse-required-property-removed
- ▲
removed the required property
target/repositoryfrom the response with the201statusresponse-required-property-removed
- ▲
removed the required property
target/workflowfrom the response with the201statusresponse-required-property-removed
- ●
removed the request property
target/refrequest-property-removed
- ●
removed the request property
target/repositoryrequest-property-removed
- ●
removed the request property
target/workflowrequest-property-removed
- ○
added discriminator to
targetrequest propertyrequest-property-discriminator-added
- ○
added
GitRunTargetNoneRunTargetFolderRunTargetto thetargetrequest propertyoneOflistrequest-property-one-of-added
- ○
added discriminator to
targetresponse property for the response status201response-property-discriminator-added
- ○
added the required property
workflowto the response with the201statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the required property
enabledfrom the response with the201statusresponse-required-property-removed
- ●
removed the request property
enabledrequest-property-removed
- ▲
- ○
endpoint added
endpoint-added
- ○