Replace automation definition
Replace the automation’s draft definition: the server-side counterpart of the Definition tab, written into the same collaborative document, so open editors converge on it live. The document is shape-validated (detail.issues lists every problem); tools, cron and expressions are checked at publish. The draft’s last saved snapshot is re-pointed at the new draft so publish reads what was written. Nothing runs until the automation is published.
Authentication
X-API-KEYstring
API Key authentication via header
Path parameters
asset_id
Unique identifier of the automation asset
Headers
X-Athena-Session-Credential
Request
This endpoint expects an object.
definition
The complete draft definition document (schema_version 2; a schema_version 1 document is read through the v1→v2 upgrader). Replaces the draft; nothing runs until the automation is published
Response
Draft replaced
asset_id
snapshot_refreshed
Whether the draft’s last saved snapshot was re-pointed at the new draft
updated_at
The updated_at stamp written into the draft
message
snapshot_version_id
status
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error
