Users

Sets the authenticated user's notification preferences, each addressed by scope rather than by ID. The batch is applied in one transaction: if any entry is rejected, none are written. Experience levels are applied before topic overrides, because setting a level replaces every topic preference for that experience, so an override sent alongside a level wins. The response reports what each scope now resolves to, in the order the entries were sent.

patch/users/me/preferences/notifications

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Request body

object required
preferences, object[] required

The preferences to set, at most 100 per request.

Example request

{
  "preferences": [
    {
      "level": "nothing",
      "scope": {
        "account_id": "biz_xxxxxxxxxxxxxx",
        "channel": "in_app",
        "experience_id": "exp_xxxxxxxxxxxxxx",
        "team_account_id": "biz_xxxxxxxxxxxxxx",
        "topic_id": "topic_xxxxxxxxxxxxxx"
      }
    }
  ]
}

Response

preferences set

object required
data, NotificationPreferenceState[] required

Example response

{
  "data": [
    {
      "level": "nothing",
      "scope": {
        "account_id": "biz_xxxxxxxxxxxxxx",
        "channel": "in_app",
        "experience_id": "exp_xxxxxxxxxxxxxx",
        "team_account_id": "biz_xxxxxxxxxxxxxx",
        "topic_id": "topic_xxxxxxxxxxxxxx"
      },
      "type": "notification_preference"
    }
  ]
}

Changes

    • warning

      added the new email enum value to the data/items/scope/channel response property for the response status

    • info

      added the new email enum value to the request property preferences/items/scope/channel

    • breaking

      removed the required property data/items/object from the response with the status

    1 more change in this revision