Upsert Notification Preference
Beta/v1/messaging/preferencesThis endpoint is idempotent. Learn more
Creates or replaces one of the current user's notification preferences, either their global default or the override for a single category.
The preference applies only to the account being acted in, and the category must be one the platform recognizes. Callers without a user membership in that account cannot hold preferences and are refused.
categoryoptional stringnullableThe notification category these settings apply to, such as chat.message.
Leave it out to set the global default used for every category without its own preference. Send null to clear.
in_app_enabledbooleanWhether notifications in this category appear in the user's in-app feed.
A direct @mention is always delivered in-app, even when this is off.
email_enabledbooleanWhether notifications in this category are also emailed to the user.
Email is additionally suppressed for a conversation the user has muted, and only sent on the cadence set by digest.
push_enabledbooleanWhether notifications in this category are also sent as push notifications.
Push delivery is not available yet; the choice is stored for when it is.
digestoptional stringenumValues:instanthourlydailyHow often email for this category is sent. Defaults to instant.
instant: send an email as soon as an eligible notification occurs.hourly: collect eligible notifications into a single hourly email.daily: collect eligible notifications into a single daily email.off: never send email for this category, even when email is otherwise enabled.
This governs email only; in-app delivery is unaffected. Batched sending is not running yet, so hourly and daily currently hold email back in the same way as off.
idstringPreference ID.
objectstringenumValues:notification_preferenceResource type identifier.
categorystringnullableenumValues:chat.messagechat.mentionchat.addedThe notification category this preference applies to.
A preference with no category is the user's global default, used for every category they have not set a specific preference for.
in_app_enabledbooleanWhether notifications in this category appear in the user's in-app feed.
A direct @mention is always delivered in-app, even when this is disabled.
email_enabledbooleanWhether notifications in this category are also emailed to the user.
Email is additionally suppressed for a conversation the user has muted, and only sent on the cadence set by digest.
push_enabledbooleanWhether notifications in this category are also sent as push notifications.
Push delivery is not available yet; the choice is stored for when it is.
digeststringenumValues:instanthourlydailyHow often email for this category is sent.
instant: send an email as soon as an eligible notification occurs.hourly: collect eligible notifications into a single hourly email.daily: collect eligible notifications into a single daily email.off: never send email for this category, even when email is otherwise enabled.
This governs email only; in-app delivery is unaffected. Batched sending is not running yet, so hourly and daily currently hold email back in the same way as off.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
Responses
Successful response for Upsert Notification Preference