Update an existing automation
PATCH
/v1/tasks/{taskId}/automations/{automationId}
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/automations/auto_abc123def456';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"GitHub Security Check - Evidence Collection","description":"Collects evidence about GitHub repository security settings","isEnabled":true,"evaluationCriteria":"example","scheduleFrequency":"daily"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/tasks/tsk_abc123def456/automations/auto_abc123def456 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "GitHub Security Check - Evidence Collection", "description": "Collects evidence about GitHub repository security settings", "isEnabled": true, "evaluationCriteria": "example", "scheduleFrequency": "daily" }'Update an existing 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
Example
tsk_abc123def456Unique task identifier
automationId
required
string
Example
auto_abc123def456Unique automation identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
Automation name
string
Example
GitHub Security Check - Evidence Collectiondescription
Automation description
string
Example
Collects evidence about GitHub repository security settingsisEnabled
Whether the automation is enabled
boolean
evaluationCriteria
Evaluation criteria for the automation
string
scheduleFrequency
Automation schedule cadence
string
Responses
Section titled “Responses”Automation updated successfully
Media typeapplication/json
object
success
boolean
automation
object
id
string
name
string
description
string
Example
{ "success": true, "automation": { "id": "auto_abc123def456", "name": "Updated Automation Name", "description": "Updated description" }}Bad request - Invalid automation ID or data
Media typeapplication/json
object
message
string
Example
{ "message": "Invalid automation data"}Unauthorized - Invalid authentication
Media typeapplication/json
object
message
string
Example
{ "message": "Unauthorized"}Automation not found
Media typeapplication/json
object
message
string
Example
{ "message": "Automation not found"}