PATCH
/
v1
/
tenant
/
{tenant_id}
/
category
/
{category_slug}
curl --request PATCH \
  --url https://hub.suprsend.com/v1/tenant/{tenant_id}/category/{category_slug}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "preference": "opt_in",
  "visible_to_subscriber": true,
  "mandatory_channels": [
    "<string>"
  ]
}'
{
  "name": "Status Update Alert",
  "category": "status-update-alert",
  "description": "Send me updates when account status changes",
  "root_category": "transactional",
  "default_preference": "opt_in",
  "default_mandatory_channels": null,
  "visible_to_subscriber": true,
  "preference": "opt_in",
  "mandatory_channels": null,
  "blocked_channels": null
}

Authorizations

Authorization
string
header
required

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

Path Parameters

tenant_id
string
required

unique identifier of the brand/tenant you want to update default preferences for

category_slug
string
required

notification category slug. You can get this from Notification Categories page on SuprSend dashboard -> Settings page

Body

application/json

Response

202
application/json
202

The response is of type object.