Set the Slack webhook URL and per-event toggles
PUT
/v1/organization/slack
const url = 'https://api.varman.io/v1/organization/slack';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"events":{"findings":true,"task_assignments":true,"device_non_compliant":true,"policy_review":true}}'};
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/organization/slack \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "events": { "findings": true, "task_assignments": true, "device_non_compliant": true, "policy_review": true } }'Set the Slack webhook URL and per-event toggles in Varman. Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
events
object
findings
boolean
task_assignments
boolean
device_non_compliant
boolean
policy_review
boolean
Example generated
{ "events": { "findings": true, "task_assignments": true, "device_non_compliant": true, "policy_review": true }}