Errors · Status 409Conflict
lead_in_trash
Client is in the trash
Why it happens
The client (or the code's client) is in the trash. Creating another one with the same code would make two clients with one code.
How to fix
Restore it in the dashboard to update it again.
Who answers
the API
Routes that return this error
- PUT/v1/leads/by-ref/{ref}— Create, update or link by your code
- POST/v1/leads— Create a client
- PATCH/v1/leads/{leadId}— Partially update a client
- POST/v1/leads/{leadId}/state— Archive or reactivate
- POST/v1/leads/{leadId}/contacts— Log how the contact went
- POST/v1/leads/{leadId}/next-step— Set the next step
- POST/v1/leads/{leadId}/temperature— Lock the temperature
- POST/v1/leads/{leadId}/lost— Close as lost
- POST/v1/leads/{leadId}/visits— Schedule a visit
- POST/v1/visits/{visitId}/reschedule— Reschedule the visit
- POST/v1/visits/{visitId}/cancel— Cancel the visit
- POST/v1/visits/{visitId}/outcome— Log how the visit went
- POST/v1/leads/{leadId}/proposals— Record an offer
- POST/v1/proposals/{proposalId}/rounds— Record a counteroffer
- POST/v1/proposals/{proposalId}/close— Close the offer
Example
{
"type": "https://imobyflow.com.br/desenvolvedores/erros/lead-in-trash",
"title": "Client is in the trash",
"status": 409,
"code": "lead_in_trash",
"requestId": "8c1f0a4e-2b7d-4c39-9e51-6a0d3f2b1c7e"
}Tap or hover a field to see what it means.