Skip to Content
CallMitraDocs
Errors

ticket_attachment_unavailable

An attachment was already sent or removed.

HTTP statusTypeCode
409conflict_errorticket_attachment_unavailable

What it means

One of the attachmentIds was attached to another note or reply, or removed, while this request ran (for example a double submit). Nothing was saved. Fetch the ticket again and resend without that attachment.

How to handle it

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

Example response

{
  "detail": "An attachment was already sent or removed.",
  "error": {
    "type": "conflict_error",
    "code": "ticket_attachment_unavailable",
    "message": "An attachment was already sent or removed.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/ticket_attachment_unavailable",
    "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

On this page