Saltar para o conteúdo principal
POST
/
v1
/
custom-fields
Criar campo adicional
curl --request POST \
  --url https://api.vendaze.com/v1/custom-fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "Market Segment",
  "key": "market_segment",
  "value": "<string>",
  "required": true,
  "show_people": true,
  "show_companies": true,
  "show_deals": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "label": "Market Segment",
    "key": "market_segment",
    "type": "select",
    "value": "[\"SaaS\",\"E-commerce\",\"Finance\"]",
    "required": false,
    "show_people": true,
    "show_companies": true,
    "show_deals": false,
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.vendaze.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizações

Authorization
string
header
obrigatório

OAuth 2.1 access token.

Corpo

application/json
label
string
obrigatório
Maximum string length: 40
Exemplo:

"Market Segment"

key
string
obrigatório
Maximum string length: 35
Exemplo:

"market_segment"

type
enum<string>
obrigatório
Opções disponíveis:
text,
long_text,
select,
multi_select,
cpf,
cnpj,
date,
number,
link,
address
value
string

Opcoes para campos select/multi_select.

required
boolean
show_people
boolean
show_companies
boolean
show_deals
boolean

Resposta

Campo adicional criado com sucesso.

data
object