PUT
/
{alias}
/
leads
/
{id}
curl --request PUT \
  --url https://api.dooki.com.br/v2/{alias}/leads/{id} \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "name": "Nome do lead",
  "email": "lead@exemplo.com",
  "birthday": "yyyy-mm-dd",
  "city": "São Paulo",
  "state": "SP",
  "genre": "m",
  "params": {
    "foo": "Bar",
    "param2": "Param2Value"
  }
}'
{
  "id": 123,
  "merchant_id": "1",
  "name": "Nome do Lead",
  "email": "lead@email.com",
  "birthday": "yyyy-mm-dd",
  "city": "São Paulo",
  "state": "SP",
  "genre": "m",
  "utm_source": "",
  "utm_campaign": "",
  "utm_medium": "",
  "utm_term": "",
  "utm_content": "",
  "params": {
    "foo": "Bar",
    "param2": "Param2Value"
  },
  "is_customer": "true",
  "customer_id": "123",
  "customer_since": "yyyy-mm-dd",
  "created_at": {
    "date": "2000-08-17 10:24:24.000000",
    "timezone_type": 3,
    "timezone": "America/Sao_Paulo"
  },
  "updated_at": {
    "date": "2000-08-17 10:24:24.000000",
    "timezone_type": 3,
    "timezone": "America/Sao_Paulo"
  }
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

id
integer
required

ID do lead

Body

application/json

Representa os dados necessários para criar ou atualizar um lead

Response

200
application/json

Lead atualizado com sucesso

Representa um lead da lista de leads