Skip to content

Create a published version record for an automation

POST
/v1/tasks/{taskId}/automations/{automationId}/versions
curl --request POST \
--url https://api.varman.io/v1/tasks/example/automations/example/versions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "version": 1, "scriptKey": "org_abc123/tsk_abc123/aut_abc123.v1.js", "changelog": "example" }'

Create a published version record for an automation in Varman. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

taskId
required
string

Task ID

automationId
required
string

Automation ID

Media typeapplication/json
object
version
required

Version number for this published script

number

Example

1
scriptKey
required

S3 key of the already-generated & published automation script (returned by the publish step).

string

Example

org_abc123/tsk_abc123/aut_abc123.v1.js
changelog

Optional changelog describing this version

string