Ir al contenido

Notification Preferences

Update current user notification preferences (upsert)

PUT
/notification-preferences
curl --request PUT \
--url https://api.inspow.tech/api/v1/notification-preferences \
--header 'Content-Type: application/json' \
--data '{ "userId": "example", "channels": { "socket": true, "email": true, "whatsapp": true }, "events": {}, "updatedBy": "example" }'
Media type application/json
object
userId
string
channels
object
socket
required
boolean
email
required
boolean
whatsapp
required
boolean
events

Per-event channels overrides

object
updatedBy
string
Example generated
{
"userId": "example",
"channels": {
"socket": true,
"email": true,
"whatsapp": true
},
"events": {},
"updatedBy": "example"
}