PATCH
/
v1
/
bulk
/
subscriber
/
preference
curl --request PATCH \
  --url https://hub.suprsend.com/v1/bulk/subscriber/preference/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "distinct_ids": [
    "id1",
    "id2"
  ],
  "channel_preferences": [
    {
      "channel": "email",
      "is_restricted": false
    }
  ],
  "categories": [
    {
      "category": "_category_slug_",
      "preference": "opt_in",
      "opt_out_channels": []
    }
  ]
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Query Parameters

tenant_id
string

to fetch user preferences for a particular tenant

Body

application/json

Response

202
application/json
202

The response is of type object.