Easymailing
Privacy

Delete a treatment purpose

DELETE /treatment_purposes/{uuid}

DELETE/treatment_purposes/{uuid}

Permanently deletes a treatment purpose that no audience uses.

When to use: When the consent is no longer asked for.

Permissions: Requires the manager role or higher, or the account.security.manage capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the treatment purpose. Get it with list_treatment_purposes.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.easymailing.com/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty