Skip to main content

Create Attribute

POST 

/api/attributes

Creates a new attribute.

Authentication: Requires Bearer token.

Fields:

  • name (required): Unique name, max 255 chars
  • type (required): One of: string, longtext, date, datetime, numeric, integer, checkbox
  • display_options (optional): JSON object with display configuration
  • option_values (optional): Array of selectable options for dropdown-type attributes
    • option_values.*.value (optional): Option value string, max 255 chars
    • option_values.*.sort_order (optional): Sort order integer
  • validation (optional): JSON validation rules
  • available_for_templates (optional): Boolean — makes attribute available in email templates
  • attribute_group_id (optional): ID of the group to assign this attribute to
  • notes (optional): Internal notes, max 255 chars

Request

Responses

Successful response