Set user preferred 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.
Body Required
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"
}
}
}