Create a published version record for an automation
POST
/v1/tasks/{taskId}/automations/{automationId}/versions
const url = 'https://api.varman.io/v1/tasks/example/automations/example/versions';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"version":1,"scriptKey":"org_abc123/tsk_abc123/aut_abc123.v1.js","changelog":"example"}'};
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://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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Task ID
automationId
required
string
Automation ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
version
required
Version number for this published script
number
Example
1scriptKey
required
S3 key of the already-generated & published automation script (returned by the publish step).
string
Example
org_abc123/tsk_abc123/aut_abc123.v1.jschangelog
Optional changelog describing this version
string