Skip to main content
PATCH
/
v1
/
user
/
{distinct_id}
/
preference
/
channel_preference
/
Overall Channel level
curl --request PATCH \
  --url https://hub.suprsend.com/v1/user/{distinct_id}/preference/channel_preference/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "channel_preferences": [
    {
      "channel": "email",
      "is_restricted": false
    }
  ]
}'
{
  "channel_preferences": [
    {
      "channel": "email",
      "is_restricted": true
    },
    {
      "channel": "inbox",
      "is_restricted": false
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

distinct_id
string
required

Query Parameters

tenant_id
string

Body

application/json
channel_preferences
object[]

Response

channel_preferences
object[]