Pular para o conteúdo principal
PUT
Update custom attribute in Account

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

id
integer
obrigatório

The ID of the custom attribute to be updated.

account_id
string
obrigatório

The numeric ID of the account

Corpo

application/json
attribute_display_name
string

Attribute display name

Exemplo:

"Custom Attribute"

attribute_display_type
integer

Attribute display type (text- 0, number- 1, currency- 2, percent- 3, link- 4, date- 5, list- 6, checkbox- 7)

Exemplo:

0

attribute_description
string

Attribute description

Exemplo:

"This is a custom attribute"

attribute_key
string

Attribute unique key value

Exemplo:

"custom_attribute"

attribute_values
string[]

Attribute values

Exemplo:
attribute_model
integer

Attribute type(conversation_attribute- 0, contact_attribute- 1)

Exemplo:

0

regex_pattern
string

Regex pattern (Only applicable for type- text). The regex pattern is used to validate the attribute value(s).

Exemplo:

"^[a-zA-Z0-9]+$"

regex_cue
string

Regex cue message (Only applicable for type- text). The cue message is shown when the regex pattern is not matched.

Exemplo:

"Please enter a valid value"

Resposta

Success

id
integer

Identifier

attribute_display_name
string

Attribute display name

attribute_display_type
string

Attribute display type (text, number, currency, percent, link, date, list, checkbox)

attribute_description
string

Attribute description

attribute_key
string

Attribute unique key value

regex_pattern
string

Regex pattern

regex_cue
string

Regex cue

attribute_values
string

Attribute values

attribute_model
string

Attribute type(conversation_attribute/contact_attribute)

default_value
string

Attribute default value

created_at
string

The date and time when the custom attribute was created

updated_at
string

The date and time when the custom attribute was updated