Skip to Content
CallMitraDocs
Errors

ticket_version_conflict

The ticket was changed since you read it.

HTTP statusTypeCode
409conflict_errorticket_version_conflict

What it means

You sent version, and someone else updated the ticket after that version. Fetch the ticket again with GET /tickets/{ticket_id}, re-apply your change and send the new version. Leave version out to skip this check.

How to handle it

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

Example response

{
  "detail": "The ticket was changed since you read it.",
  "error": {
    "type": "conflict_error",
    "code": "ticket_version_conflict",
    "message": "The ticket was changed since you read it.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/ticket_version_conflict",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}

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

Returned by

  • POST /api/v1/tickets/{ticket_id}/activities — Add a note to a ticket
  • POST /api/v1/tickets/{ticket_id}/replies — Reply to the customer
  • PATCH /api/v1/tickets/{ticket_id} — Update a ticket

On this page