Skip to Content
CallMitraDocs
Errors

lead_changed

This lead changed since you opened it.

HTTP statusTypeCode
409conflict_errorlead_changed

What it means

You sent If-Match with the lead's updatedAt, and someone changed the lead after that. Read it again with GET /leads/{leadId}, reapply your change, and retry with the new updatedAt.

How to handle it

Fetch the resource again to see its current state, then decide whether to retry.

Example response

{
  "detail": "This lead changed since you opened it.",
  "error": {
    "type": "conflict_error",
    "code": "lead_changed",
    "message": "This lead changed since you opened it.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/lead_changed",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}

Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.

Returned by

  • PUT /api/v1/leads/{lead_id} — Update a lead

On this page