Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Custom Attributes → Add New Custom Attribute To Account

AI-generated

Summary

Create a new custom attribute for an account by specifying its key, display name, type, description, and other optional properties such as allowed values and validation rules.

Inputs

  • Attribute Key (required) — Unique identifier key for the custom attribute.
  • Attribute Display Name (required) — Display name shown for the custom attribute.
  • Attribute Display Type (required) — Defines the attribute's display type; options include text (0), number (1), currency (2), percent (3), link (4), date (5), list (6), checkbox (7).
  • Attribute Description — Description explaining the purpose or details of the attribute.
  • Attribute Values — JSON array of possible values for the attribute, applicable for selectable types like list.
  • Attribute Model (required) — The model context for the attribute: conversation attribute (0) or contact attribute (1).
  • Regex Pattern — Regular expression pattern to validate the attribute values, applicable only to text type.
  • Regex Cue — Message shown when the input does not match the regex pattern, applicable only to text type.

Output shape

a single record containing details of the created custom attribute

The result includes the attribute's properties as created. No pagination involved. If errors occur (such as duplicate key), they will be reported according to node error handling settings.

Links

Discussion