PATCH
/
api
/
subscriptions
/
{id}
[DEPRECATED] Please use Partner Resource /api/resources/{schemaDefinitionNameOrId}/{externalId} instead
curl --request PATCH \
  --url https://api.embedreach.com/api/subscriptions/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "emailOptOut": true,
  "phoneOptOut": true
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "emailOptOut": true,
    "phoneOptOut": true
  }
}

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json

Response

200
application/json

Status 200 response

The response is of type object.