Update personal notification preferences
PUT
/me/notification-preferences
const url = 'https://api.invogi.com/v1/me/notification-preferences';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"type":"FINDING_ASSIGNED","push_enabled":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.invogi.com/v1/me/notification-preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "type": "FINDING_ASSIGNED", "push_enabled": true } ] }'Requires a signed-in Clerk session; no workspace selection is needed.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
items
required
Array<object>
object
type
required
string
push_enabled
required
boolean
Example
{ "items": [ { "type": "FINDING_ASSIGNED", "push_enabled": true } ]}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
items
required
Array<object>
object
type
required
string
push_enabled
required
boolean
Example
{ "items": [ { "type": "FINDING_ASSIGNED" } ]}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json