Pular para o conteúdo

Update Custom Field

PUT
/api/v1/fields/{entity}/custom/{field_id}

Atualiza um campo personalizado.

Nota: O tipo do campo (field_type) não pode ser alterado após criação para não quebrar dados existentes.

entity
required
Entity
string
field_id
required
Field Id
integer
x-tenant-id
Any of:
integer
CustomFieldUpdate

Schema para atualizar campo personalizado.

object
label
Any of:
string
>= 1 characters <= 100 characters
description
Any of:
string
<= 255 characters
options
Any of:
Array<object>
SelectOption

Opção para campos select/multi_select.

object
value
required
Value
string
label
required
Label
string
color
Any of:
string
icon
Any of:
string
validation
Any of:
ValidationConfig

Configuração de validação.

object
required
Any of:
boolean
min
Any of:
number
max
Any of:
number
min_length
Any of:
integer
max_length
Any of:
integer
pattern
Any of:
string
pattern_message
Any of:
string
is_required
Any of:
boolean
placeholder
Any of:
string
<= 100 characters
default_value
Any of:
show_in_table
Any of:
boolean
show_in_form
Any of:
boolean
show_in_card
Any of:
boolean
display_order
Any of:
integer
is_searchable
Any of:
boolean
is_filterable
Any of:
boolean
is_sortable
Any of:
boolean
is_active
Any of:
boolean

Successful Response

CustomFieldResponse

Schema de resposta para campo personalizado.

object
id
required
Id
integer
entity
required
CustomFieldEntity

Entidades que suportam campos personalizados.

string
Allowed values: contacts companies deals
key
required
Key
string
label
required
Label
string
description
required
Any of:
string
field_type
required
CustomFieldType

Tipos de campo suportados.

string
Allowed values: text textarea number decimal currency date datetime boolean select multi_select tags email phone url user
options
required
Any of:
Array<object>
SelectOption

Opção para campos select/multi_select.

object
value
required
Value
string
label
required
Label
string
color
Any of:
string
icon
Any of:
string
validation
required
Any of:
ValidationConfig

Configuração de validação.

object
required
Any of:
boolean
min
Any of:
number
max
Any of:
number
min_length
Any of:
integer
max_length
Any of:
integer
pattern
Any of:
string
pattern_message
Any of:
string
placeholder
required
Any of:
string
default_value
required
Any of:
show_in_table
required
Show In Table
boolean
show_in_form
required
Show In Form
boolean
show_in_card
required
Show In Card
boolean
display_order
required
Display Order
integer
is_active
required
Is Active
boolean
is_required
required
Is Required
boolean
is_unique
required
Is Unique
boolean
is_searchable
required
Is Searchable
boolean
is_filterable
required
Is Filterable
boolean
is_sortable
required
Is Sortable
boolean
created_by_id
required
Any of:
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
frontend_type
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string