createCustomAttribute
createCustomAttributeDefine new custom attributes for entity types such as customers or invoices, specifying key name, display name, data type, and optional validation rules.
Instructions
Create a new custom attribute definition for an entity type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribute_key_name | Yes | Key name of the custom attribute (used as the field key). | |
| display_name | Yes | Display name for the custom attribute. | |
| module | Yes | Module/entity type this attribute applies to. Allowed values: 'customers', 'contracts', 'invoices', 'payments', 'products', 'plans'. | |
| data_type | Yes | Data type of the attribute. Valid values: 'STRING', 'INTEGER', 'FLOAT', 'BOOLEAN', 'LIST_STRING', 'ENUM', 'JSON', 'DATE'. | |
| default_value | No | Default value for the attribute. | |
| enum_choices | No | Array of allowed values for enum-type attributes. | |
| is_required | No | Whether the attribute is required. | |
| description | No | Description of the custom attribute. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |