Sync Automation Release
POST
/api/automations/sync-release
const url = 'https://example.com/api/automations/sync-release';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"automation_alias":"example","environment":"example","action":"activate","metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/automations/sync-release \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "automation_alias": "example", "environment": "example", "action": "activate", "metadata": {} }'Internal: called by deploy-test.yml / deploy-prod.yml after promote PR merge.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
AutomationReleaseSyncRequest
Internal promote-after-merge hook from workflow automation deploy jobs.
This is not a user-facing lifecycle request; the deploy workflow supplies the target environment it just applied so agents-api can register the local workflow_deployments row.
object
automation_alias
required
Automation Alias
string
environment
required
Environment
string
action
Action
string
metadata
Metadata
object
key
additional properties
any
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}