Update a treatment purpose
PUT /treatment_purposes/{uuid}
/treatment_purposes/{uuid}Changes the name, description, texts or channels of a treatment purpose.
When to use: When the wording of a consent must change.
When not to use: To add a new purpose use create_treatment_purpose.
Permissions: Requires the manager role or higher, or the account.security.manage capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the treatment purpose. Get it with list_treatment_purposes.
The updated TreatmentPurpose resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "translations": [ { "title": "string", "locale": "string" } ], "name": "string", "description": "string", "custom": true, "channels": [ "email" ] }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "translations": [ { "title": "string", "locale": "string" } ], "name": "string", "description": "string", "custom": true, "channels": [ "email" ]}