Error reference

stage_has_leads

HTTP status
409 Conflict
Returned by
Leads, contacts, companies, pipelines, fields and products

What it means

A stage that still has leads cannot be deleted without saying where its leads go.

Typical causes

  • DELETE /v1/pipelines/{id}/stages/{stageID} without a target stage.

How to fix it

  • Pass the target stage as ?move_to=stage_…, or move the leads first.

Message

English text, as sent with Accept-Language: en. With ru or uz the API sends the translation.

  • Choose a stage to move this stage's leads to.
    RU: Выберите этап, куда перенести сделки с этого этапа.
    UZ: Bu bosqichdagi bitimlar oʻtkaziladigan bosqichni tanlang.

Example response

Response
HTTP/1.1 409 Conflict
Content-Type: application/json; charset=utf-8
X-Request-Id: req_4f2a9c1e0b7d3a55

{
  "error": {
    "code": "stage_has_leads",
    "message": "Choose a stage to move this stage's leads to.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://developers.kweko.uz/errors/stage_has_leads"
  }
}

All error codes · The error format