Skip to main content
PUT
/
account-crm-pipeline-deal
/
{id}
curl --request PUT \
  --url 'https://sell.ia.proativia.com/api/v1/account-crm-pipeline-deal/cldeal001' \
  --header 'Token: SEU_TOKEN_DE_API' \
  --header 'Content-Type: application/json' \
  --data '{
    "status": "won",
    "value": 20000
  }'
{
  "id": "cldeal001",
  "title": "Contrato Empresa X",
  "stageId": "clstg0001",
  "leadId": "cllead001",
  "dealOwner": "cluser001",
  "value": 20000,
  "status": "won",
  "expectedCloseDate": "2025-08-01T00:00:00.000Z",
  "createdAt": "2025-06-15T14:30:00.000Z",
  "updatedAt": "2025-06-20T12:00:00.000Z"
}

Requisição

PUT https://sell.ia.proativia.com/api/v1/account-crm-pipeline-deal/{id}
Token
string
required
Seu token de autenticação.
id
string
required
ID do negócio a ser atualizado.

Body

Todos os campos são opcionais. Envie apenas os campos que deseja atualizar.
title
string
Novo título do negócio.
stageId
string
Novo ID do estágio do pipeline.
leadId
string
Novo ID do lead vinculado.
dealOwner
string
Novo ID do usuário responsável.
value
number
Novo valor estimado do negócio.
status
string
Novo status do negócio (ex: open, won, lost).
expectedCloseDate
string
Nova data prevista de fechamento no formato ISO 8601.

Resposta

Retorna o objeto do negócio atualizado.
id
string
Identificador único do negócio.
title
string
Título atualizado.
stageId
string | null
ID do estágio atualizado.
value
number | null
Valor atualizado.
status
string | null
Status atualizado.
updatedAt
string
Data da última atualização (ISO 8601).

Exemplos

curl --request PUT \
  --url 'https://sell.ia.proativia.com/api/v1/account-crm-pipeline-deal/cldeal001' \
  --header 'Token: SEU_TOKEN_DE_API' \
  --header 'Content-Type: application/json' \
  --data '{
    "status": "won",
    "value": 20000
  }'
{
  "id": "cldeal001",
  "title": "Contrato Empresa X",
  "stageId": "clstg0001",
  "leadId": "cllead001",
  "dealOwner": "cluser001",
  "value": 20000,
  "status": "won",
  "expectedCloseDate": "2025-08-01T00:00:00.000Z",
  "createdAt": "2025-06-15T14:30:00.000Z",
  "updatedAt": "2025-06-20T12:00:00.000Z"
}

Authorizations

Token
string
header
required

Token de autenticacao gerado na plataforma Sell.IA.

Path Parameters

id
string
required

Identificador único do recurso.

Body

application/json
title
string
required

Titulo do negocio.

stageId
string

ID do estagio em que o negocio se encontra.

leadId
string

ID do lead vinculado ao negocio.

dealOwner
string

ID do usuario responsavel pelo negocio.

value
number

Valor estimado do negocio.

status
string

Status do negocio (ex: open, won, lost).

expectedCloseDate
string<date-time>

Data prevista de fechamento (ISO 8601).

Response

Negócio atualizado com sucesso.

message
string
Example:

"Operação realizada com sucesso."