Skip to main content
PATCH
/
leads
/
{id}
Atualizar lead
curl --request PATCH \
  --url http://localhost:3000/leads/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "João Silva",
  "whatsapp": "5511999999999",
  "source": "website",
  "status": "CONTATADO"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
Example:

"João Silva"

whatsapp
string
Example:

"5511999999999"

source
string
Example:

"website"

status
enum<string>
Available options:
NOVO,
CONTATADO,
QUALIFICADO,
FECHADO,
PERDIDO
Example:

"CONTATADO"

Response

Lead atualizado