DELETE
/
v1
/
object
/
{object_type}
/
{id}
/
subscription
curl --request DELETE \
  --url https://hub.suprsend.com/v1/object/{object_type}/{id}/subscription/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "recipients": [
    "<string>"
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier of the object in your system

object_type
string
required

Used to group similar objects together. Give plural namespace like teams, organizations, and roles.

Body

application/json
recipients
array

List of recipients to be notified. You can either add recipient as array of distinct_ids or array of recipient objects. You can add upto 100 recipients in a single API.

Pass user distinct_ids in array as ["id1","id2"]

Response

204
_mintlify/placeholder

204 - No Content