PUT /api/v2/notification-preferences
Sets the notification opt-in preferences for the authenticated user. This replaces all existing opt-ins — send the full desired set on every call.
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
optIns | array | Yes | Full replacement set of opt-ins (max 200). Send an empty array to clear all |
optIns[].notificationType | enum | Yes | Event type to opt into — e.g. campaign.created, campaign.unhealthy, creative.approved, media_buy.updated, optimization.suggestion_received, system.error |
optIns[].channel | enum | Yes | email or in_app |
Response
Errors
400 VALIDATION_ERROR— unknownnotificationType, invalidchannel, or more than 200 opt-ins.401 UNAUTHORIZED— missing or invalid bearer token.
Related
Account tasks
All account operations
Get notification preferences
Your current opt-ins