Skip to navigation

Replace automation definition

Beta

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_idstringRequired
Unique identifier of the automation asset

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
definitionmap from strings to anyRequired

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_idstring
snapshot_refreshedboolean

Whether the draft’s last saved snapshot was re-pointed at the new draft

updated_atdatetime

The updated_at stamp written into the draft

messagestringOptionalDefaults to Automation draft updated successfully
snapshot_version_idstring or nullOptional
statusstringOptionalDefaults to updated

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error