# UserNotificationPreferences

Schema: #/components/schemas/UserNotificationPreferences

Method: SCHEMA
Version: 2.0
Security: oauth2

## Schema fields:

  - `url` (string)
    Example: https://api.ev.energy/v2/users/user01HN2NJ9NMRZBXT1H6FT9N7735/notification_preferences

  - `groups` (object)
    Map of notification group name to opt-in state. Each group
corresponds to a category of push/email notifications:
- `charging_flow`
 — session lifecycle updates (plug-in, schedule, complete).
- `charging_issues`
 — errors and failures during a charging session.
- `charging_optimisation`
 — smart-charging schedule and savings updates.
- `deals_and_offers`
 — marketing offers (subject to the user's marketing consent).
- `power_supply_notifications`
 — grid / power-supply events (feature-flagged).
    Example: {"charging_flow":true,"charging_issues":true,"charging_optimisation":false,"deals_and_offers":false,"power_supply_notifications":false}

  - `groups.charging_flow` (boolean)

  - `groups.charging_issues` (boolean)

  - `groups.charging_optimisation` (boolean)

  - `groups.deals_and_offers` (boolean)

  - `groups.power_supply_notifications` (boolean)

