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

Responses

  • 200 application/json

    OK

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

    VPN detected

    Hide response attribute Show response attribute object
PATCH /v1/client/user/notifications
curl \
 -X PATCH https://api.bitlabs.ai/v1/client/user/notifications \
 -H "X-Api-Token: $API_KEY" \
 -H "X-User-Id: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"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"
    }
  }
}