Update notification preferences
Updates the authenticated user’s notification preferences. All fields are optional.
Two levels. importantEmails is the master switch — off means no transactional email at all. channels is a per-type opt-out underneath it, so a trader can keep breach emails while dropping, say, add-on activation emails.
Known types, grouped the way the apps present them:
- Accounts:
account_imported,account_failed,account_passed,account_expired - Risk management (the trader’s own limits):
risk_loss_limit,risk_profit_target,risk_lockout,risk_trade_limit,risk_auto_liquidation - Market alerts:
price_alert - Add-ons:
addon_activated,addon_deactivated(e.g. the CME Market Depth add-on)
A type that is absent from channels is opted in. Every type emails by default and can be turned off individually. Category-level “turn everything off” in the apps is just a batch of per-type entries in one request — there is no separate category object.
channels is merged, not replaced — send only what changed:
{ "channels": { "price_alert": { "email": false } } }
Body
Receive important account and security emails
true
Receive marketing and promotional emails
false
Per-notification-type opt-outs, keyed by notification type. Merged with what is stored, so send only the types you are changing.