Replace automation
Replaces an automation definition when If-Match matches the current automation revision.
Path parameters
Unique automation identifier.
Headers
Current resource revision used for optimistic concurrency, as returned in the ETag response header.
Request body
Example request
{
"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",
"workflow_source": {
"repo": "acme/workflows",
"branch": "main",
"tag": "v1.2.3"
},
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}Response
Automation replaced
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",
"workflow_source": {
"repo": "acme/workflows",
"branch": "main",
"tag": "v1.2.3"
},
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}Changes
Changed in 7 of the 172 revisions of this API.12619
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 12 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added the new required request property
/new-required-request-property
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ●
removed the request property
/request-property-removed
- ●
removed the request property
/request-property-removed
- ○
added the new optional request property
/new-optional-request-property
- ○
added the new optional request property
/new-optional-request-property
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ▲
added the new required request property
new-required-request-property
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ▲
- ▲
added the new required request property
new-required-request-property
- ▲
the
request property type changed fromobjectto no typerequest-property-type-changed
- ▲
added to the
response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ●
removed the request property
/request-property-removed
- ●
removed the request property
/request-property-removed
- ●
removed the request property
/request-property-removed
- ○
added discriminator to
request propertyrequest-property-discriminator-added
- ○
added to the
request propertyoneOflistrequest-property-one-of-added
- ○
added discriminator to
response property for the response statusresponse-property-discriminator-added
- ○
added the required property
to the response with the statusresponse-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
from the response with the statusresponse-required-property-removed
- ●
removed the request property
request-property-removed
- ▲
- ○
endpoint added
endpoint-added
- ○