PATCH
/
v1
/
bulk
/
subscriber
/
preference
/
reset
curl --request PATCH \
  --url https://hub.suprsend.com/v1/bulk/subscriber/preference/reset/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "distinct_ids": [
    "id1",
    "id2"
  ],
  "reset_channel_preferences": true,
  "reset_categories": true
}'
{
  "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
distinct_ids
string[]
required

distinct_id of users whose preference needs to be reset

reset_channel_preferences
boolean
default:true

setting this to true will set all channel preference to default setting.

reset_categories
boolean
default:true

setting this to true will set all category preferences to default tenant preference.

Response

202
application/json
202
success
boolean
Example:

true