Update role notification settings
PUT
/v1/organization/role-notifications
const url = 'https://api.varman.io/v1/organization/role-notifications';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"settings":[{"role":"example","policyNotifications":true,"taskReminders":true,"taskAssignments":true,"taskMentions":true,"weeklyTaskDigest":true,"findingNotifications":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/role-notifications \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "settings": [ { "role": "example", "policyNotifications": true, "taskReminders": true, "taskAssignments": true, "taskMentions": true, "weeklyTaskDigest": true, "findingNotifications": true } ] }'Update role notification settings 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
settings
required
Array<object>
object
role
required
string
policyNotifications
required
boolean
taskReminders
required
boolean
taskAssignments
required
boolean
taskMentions
required
boolean
weeklyTaskDigest
required
boolean
findingNotifications
required
boolean
Example generated
{ "settings": [ { "role": "example", "policyNotifications": true, "taskReminders": true, "taskAssignments": true, "taskMentions": true, "weeklyTaskDigest": true, "findingNotifications": true } ]}