Reject pending policy changes
POST
/v1/policies/{id}/deny-changes
const url = 'https://api.varman.io/v1/policies/pol_abc123def456/deny-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/deny-changes \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "approverId": "mem_abc123def456", "comment": "Looks good" }'Records your rejection of the version pending review. Any rejection sends the policy back to its previous status without publishing.
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