Log a procedure run
POST
/v1/procedures/{policyId}/runs
const url = 'https://api.varman.io/v1/procedures/pol_abc123def456/runs';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"completedSteps":["Export the access list","Remove leavers"],"notes":"Two leavers removed from AWS. Ticket OPS-112."}'};
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/procedures/pol_abc123def456/runs \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "completedSteps": [ "Export the access list", "Remove leavers" ], "notes": "Two leavers removed from AWS. Ticket OPS-112." }'Records that the procedure was carried out now by the calling member, with the steps completed and optional notes. Runs are append-only execution evidence.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”policyId
required
string
Example
pol_abc123def456Procedure id (a policy with kind procedure)
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
completedSteps
required
Steps completed in this run, by exact step text. Unknown steps are ignored.
Array<string>
Example
[ "Export the access list", "Remove leavers"]notes
What happened in this run: findings, exceptions, links to evidence.
string
Example
Two leavers removed from AWS. Ticket OPS-112.