Skip to content

Update Notification Setting

PATCH
/notification-settings/{event}

Update the notification settings (Push, Email, Text) for a specific event for the current user.

event
required
string

Notification event to update

Request payload to update notification settings

Request to update notification settings for a user.

object
email
required
boolean
push
required
boolean
true
text
required
boolean
true

Notification settings updated successfully

Bad Request: invalid data or unsupported event/user type/flag value

object
error
string
some meaningful error message

Unauthorized: user is not authenticated

object
error
string
some meaningful error message

Internal Server Error: failed to update notification settings

object
error
string
some meaningful error message