Cakemail icon

Cakemail

Interact with Cakemail API

Custom Attribute → Create

AI-generated

Summary

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'.

Discussion