Update current user email notification preferences
PUT
/v1/people/me/email-preferences
const url = 'https://api.varman.io/v1/people/me/email-preferences';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"preferences":{"policyNotifications":true,"taskReminders":true,"weeklyTaskDigest":true,"unassignedItemsNotifications":true,"taskMentions":true,"taskAssignments":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/people/me/email-preferences \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "preferences": { "policyNotifications": true, "taskReminders": true, "weeklyTaskDigest": true, "unassignedItemsNotifications": true, "taskMentions": true, "taskAssignments": true } }'Update current user email notification preferences in Varman. Invite and manage workforce members, training status, device compliance, email preferences, and employee evidence records.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
preferences
required
object
policyNotifications
required
boolean
Example
truetaskReminders
required
boolean
Example
trueweeklyTaskDigest
required
boolean
Example
trueunassignedItemsNotifications
required
boolean
Example
truetaskMentions
required
boolean
Example
truetaskAssignments
required
boolean
Example
true