Pular para o conteúdo principal
POST
Criar ou editar campo personalizado

Autorizações

Authorization
string
header
obrigatório

Chave criada em Meu Perfil → API Keys. Envie Authorization: Bearer sk_live_….

Cabeçalhos

Idempotency-Key
string

Chave única desta alteração (ex.: um UUID). Repetir a chamada com a mesma chave devolve a mesma resposta, sem duplicar.

Maximum string length: 255

Corpo

application/json
label
string
obrigatório

Nome do campo, como aparece no painel e no cabeçalho do CSV.

Required string length: 1 - 60
field_id
string
Pattern: ^cfd_[a-z0-9]{16}$
Exemplo:

"cfd_4f8k2m9q1x7c3v5b"

type
enum<string>

Obrigatório ao criar; ignorado ao editar.

Opções disponíveis:
text,
number,
date,
select,
multiselect,
boolean
options
string[]

Opções de select e multiselect. Ao editar, a lista enviada substitui a anterior; omita para manter.

Maximum array length: 50
Required string length: 1 - 80
required
boolean

Resposta

Sucesso.

id
string
obrigatório
created
boolean
obrigatório
dashboard_url
string
obrigatório
{key}
any