Skip to content

Update notification preferences

Request

This endpoint updates notification preferences for a user.

Security
Bearer
Path
userIdstring, (uuid)required

Identifier for user.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
preferencesArray of objects(NotificationPreferencePerType)
curl -i -X PUT \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/notification-preferences \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "preferences": [
      {
        "notificationType": "FLIGHT_NOTIFICATION",
        "emailPreference": {
          "enabled": true,
          "ccEmails": [
            "user@example.com"
          ]
        }
      }
    ]
  }'

Responses

OK

Response
No content