Create a simple custom field
POST /audiences/{audienceUuid}/list_fields/simple
/audiences/{audienceUuid}/list_fields/simpleAdds a custom field of a simple type (text, number, date, yes/no...) to an audience, so each member can store that data.
When to use: When the user needs to store one more piece of information per subscriber, like a company, a birthday or a customer number.
When not to use: For a field where the person picks from a list of choices, use create_custom_field_select (one choice) or create_custom_field_multiselect (several).
Side effects: Counts against the number of custom fields per audience allowed by the plan.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the audience to add the field to. If the account has several audiences, confirm with the user which one. Get it from list_audiences.
The new ListField resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/simple" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "type": "list.field.type.text", "tag": "string", "required": true, "public": true, "translations": [ { "locale": "string", "label": "string", "default_value": "string", "help_text": "string" } ] }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "tag": "string", "template_tag": "string", "public": true, "required": true, "type": "list.field.type.text", "translations": [ { "label": "string", "default_value": "string", "help_text": "string", "locale": "string" } ], "options": { "property1": "string", "property2": "string" }, "list_field_options": [ { "value": "string", "translations": [ { "name": "string", "locale": "string" } ] } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}