ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions117

Custom Attributes → Add New Custom Attribute To Account

AI-generated

Summary

Add a new custom attribute to a specified ChatWoot account by providing its numeric Account Id along with attribute details such as key, display name, display type, description, values, and model type.

Inputs

  • Account Id (required) — The numeric ID of the ChatWoot account to which the custom attribute will be added.
  • Attribute Display Name — The display name of the custom attribute.
  • Attribute Display Type — The display type of the attribute, encoded as a number: text-0, number-1, currency-2, percent-3, link-4, date-5, list-6, checkbox-7.
  • Attribute Description — A description for the custom attribute.
  • Attribute Key — A unique key value identifying the custom attribute.
  • Attribute Values — A JSON array of values associated with the attribute.
  • Attribute Model — The attribute model type: conversation_attribute (0) or contact_attribute (1).

Output shape

a single record representing the created custom attribute

The operation returns the created custom attribute object in the response body. Optional request options such as batching, SSL handling, proxy, and timeout can be set but do not affect the output shape.

Discussion