Approve pending policy changes
POST
/v1/policies/{id}/accept-changes
const url = 'https://api.varman.io/v1/policies/pol_abc123def456/accept-changes';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"approverId":"mem_abc123def456","comment":"Looks good"}'};
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/policies/pol_abc123def456/accept-changes \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "approverId": "mem_abc123def456", "comment": "Looks good" }'Records your approval of the version pending review. It publishes once every listed approver approved; check published and progress in the response.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
pol_abc123def456Policy ID
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Organization ID (required for session auth, optional for API key auth)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
approverId
Member ID of the approver deciding. Only used for API key callers; session callers decide as themselves.
string
Example
mem_abc123def456comment
Reason for the decision
string
Example
Looks good