Set user preferred notifications

PATCH /v1/client/user/notifications

This endpoint is used to configure the user's notification channels. These channels are designed to notify the user about specific events, such as user inactivity, completed offers, and more. Only the channels included in the list will be set; all others will default to false.

application/json

Body Required

  • user_channels array[object] Required
    Hide user_channels attributes Show user_channels attributes object
    • channel_id string Required
    • enabled boolean Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object
PATCH /v1/client/user/notifications
curl \
 --request PATCH 'https://api.bitlabs.ai/v1/client/user/notifications' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"user_channels":[{"channel_id":"string","enabled":true}]}'
Request examples
{
  "user_channels": [
    {
      "channel_id": "string",
      "enabled": true
    }
  ]
}
Response examples (200)
{
  "data": {}
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}