Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Custom Attributes → Update Custom Attribute In Account

AI-generated

Summary

Update an existing custom attribute on an account by specifying its ID and providing new attribute details such as display name, type, description, key, values, model, and optional regex validation.

Inputs

  • Id (required) — The ID of the custom attribute to be updated.
  • Attribute Display Name — Human-readable name for the attribute.
  • Attribute Display Type — The data type for the attribute display, encoded as a number (text-0, number-1, currency-2, percent-3, link-4, date-5, list-6, checkbox-7).
  • Attribute Description — Description text for the attribute.
  • Attribute Key — Unique key identifier for the attribute.
  • Attribute Values — JSON array of possible attribute values.
  • Attribute Model — The model type for the attribute (conversation_attribute-0, contact_attribute-1).
  • Regex Pattern — Regular expression pattern to validate text type attribute values.
  • Regex Cue — Validation cue message displayed when regex pattern is not matched.

Output shape

a single record containing the updated custom attribute details

The updated custom attribute record reflects the new values provided. The operation requires the attribute ID to identify which custom attribute to update. Optional fields can be omitted if no update to those fields is desired.

Links

Discussion