Upsert Notification Preference
Beta/v1/messaging/preferencesThis endpoint is idempotent. Learn more
Creates or replaces a notification channel preference for the caller.
categoryoptional stringnullableThe notification category this preference applies to.
Omit (or null) to set the caller's global default. Send null to clear.
in_app_enabledbooleanWhether in-app (bell) notifications are delivered for this category.
email_enabledbooleanWhether email notifications are delivered for this category.
push_enabledbooleanWhether push notifications are delivered for this category.
digestoptional stringenumValues:instanthourlydailyHow email delivery for this category is batched. Defaults to instant.
instant: send an email as soon as an eligible notification occurs.hourly: batch eligible notifications into a single hourly email.daily: batch eligible notifications into a single daily email.off: never send email for this category, even when email delivery is otherwise enabled.
idstringPreference ID.
objectstringenumValues:notification_preferenceResource type identifier.
categorystringnullableThe notification category this preference applies to.
null for the global default that applies to all categories without a specific preference.
in_app_enabledbooleanWhether in-app (bell) notifications are delivered for this category.
email_enabledbooleanWhether email notifications are delivered for this category.
push_enabledbooleanWhether push notifications are delivered for this category.
digeststringenumValues:instanthourlydailyHow email delivery for this category is batched.
instant: send an email as soon as an eligible notification occurs.hourly: batch eligible notifications into a single hourly email.daily: batch eligible notifications into a single daily email.off: never send email for this category, even when email delivery is otherwise enabled.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
Responses
Successful response for Upsert Notification Preference