Automations
Replace automation
Replaces an automation definition when If-Match matches the current automation revision.
put/api/v1/automations/{id}
Path parameters
idstring required
Unique automation identifier.
Headers
If-Matchstring required
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",
"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",
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}