Replace procedure checklist steps
PUT
/v1/procedures/{policyId}/steps
const url = 'https://api.varman.io/v1/procedures/pol_abc123def456/steps';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"steps":["Export the access list","Remove leavers","Record the review"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.varman.io/v1/procedures/pol_abc123def456/steps \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "steps": [ "Export the access list", "Remove leavers", "Record the review" ] }'Sets the ordered checklist steps of a procedure. Past runs keep the step text they recorded, so editing steps never rewrites history.
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
steps
required
Ordered checklist steps. Replaces the current list.
Array<string>
Example
[ "Export the access list", "Remove leavers", "Record the review"]