Saltar para o conteúdo principal
POST
/
v1
/
pipelines
Criar pipeline
curl --request POST \
  --url https://api.vendaze.com/v1/pipelines \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Novos Negócios",
  "stages": [
    {
      "name": "Prospecção",
      "type": "open",
      "probability": 10
    },
    {
      "name": "Proposta",
      "type": "open",
      "probability": 40
    },
    {
      "name": "Negociação",
      "type": "open",
      "probability": 70
    },
    {
      "name": "Ganho",
      "type": "win",
      "probability": 100
    },
    {
      "name": "Perdido",
      "type": "lost",
      "probability": 0
    }
  ]
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Novos Negócios",
    "created_at": "2023-11-07T05:31:56Z",
    "stages": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "Proposta",
        "probability": 40,
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Autorizações

Authorization
string
header
obrigatório

Access token OAuth 2.1.

Corpo

application/json
name
string
obrigatório
Maximum string length: 50
Exemplo:

"Novos Negócios"

stages
object[]
obrigatório
Minimum array length: 1

Resposta

Pipeline criado com sucesso.

data
object