Skip to navigation

Create automation from blueprint

Beta

Create a new, unpublished automation whose draft is a copy of a blueprint’s current version: blueprint is dropped, the copy is named title, and each inputs value becomes the default of the input of that name, checked against the blueprint’s inputs schema. Nothing runs until the new automation is published. The automation is created in the blueprint’s own workspace, and the caller must be able to view the blueprint. A refused value is 400 with detail.code = INVALID_RUN_INPUTS and detail.issues[] naming each problem’s path and message; an automation that is not a published blueprint, or an archived one, is 400 with detail.code = BLUEPRINT_REFUSED and detail.reason.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

blueprint_asset_idstringRequired

Unique identifier of the blueprint (an automation asset)

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects a nullable object.
inputsmap from strings to any or nullOptional

Values for the blueprint’s inputs, by input name; each becomes that input’s default in the new draft

parent_folder_idstring or nullOptional

Folder to create the automation in (workspace root if omitted); the caller needs edit access to it

titlestring or nullOptional

Name of the new automation; the blueprint’s own name when omitted or blank

Response

Automation created from the blueprint
asset_idstring
ID of the new automation asset
principal_refstring

The automation’s own principal; every step runs as it

titlestring
messagestringOptionalDefaults to Automation created successfully
parent_folder_idstring or nullOptional
statusstringOptionalDefaults to created
workspace_idstring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error