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.",
"target": {
"repository": "fabro-sh/fabro",
"ref": "main",
"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.",
"target": {
"repository": "fabro-sh/fabro",
"ref": "main",
"workflow": "dependency-update"
},
"triggers": [
{
"id": "manual",
"enabled": true
}
]
}