Actions138
- Account Actions
- Contact Actions
- List Actions
- Campaign Actions
- Webhook Actions
- Segment Actions
- Report Actions
- Email Actions
- Custom Attribute Actions
- Sender Actions
- Template Actions
- Sub-Account Actions
- Log Actions
- User Actions
- Domain Actions
- DKIM Actions
- Form Actions
- Token Actions
- Interest Actions
- Tags Actions
- Suppressed Email Actions
- Links Actions
Custom Attribute → Create
AI-generatedSummary
Create a custom attribute in a specified list.
Inputs
- accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
- listId (required) — The ID of the list
- createAttributeName (required) — The name of the custom attribute to create
- attributeType (required) — The type of the custom attribute (Text, Number, Date, Datetime, or Boolean).
Output shape
no body — success/failure only
Returns a success message or an error if the creation fails.
Examples
Example 1: Creating a text type custom attribute called 'Customer Type' for a list with ID 12345.
Set listId to 12345, createAttributeName to 'Customer Type', and attributeType to 'text'.