Easymailing
Custom fields

Delete a custom field

DELETE /audiences/{audienceUuid}/list_fields/{uuid}

DELETE/audiences/{audienceUuid}/list_fields/{uuid}

Permanently deletes a custom field, with the options it defines and the values every member had stored in it. Predefined fields cannot be deleted.

When to use: Only when the user explicitly wants to stop collecting that data and lose what was stored.

When not to use: To keep the data but stop asking for it in forms, use the update operation of the field and set public to false.

Side effects: The values stored on members are deleted with the field and cannot be recovered through the API. The field disappears from the audience's subscription forms (they are rebuilt in the background). While a segment, an unsent campaign or an automation filters by the field, the deletion is refused with 409 and lists them: removing it would drop those conditions and widen the segment to the whole audience. Remove those conditions first. Predefined fields cannot be deleted.

Permissions: Requires the manager role or higher, or the marketing.audiences.delete capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the custom field belongs to. Get it from list_audiences.

uuid*string

UUID of the custom field. Get it from list_audience_custom_fields.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty