Errors
ticket_edit_forbidden
You can only update tickets assigned to you or unassigned.
| HTTP status | Type | Code |
|---|---|---|
| 403 | permission_error | ticket_edit_forbidden |
What it means
The user that owns this API key is an agent, and the ticket is assigned to someone else. Use a key created by a manager, or assign the ticket to the key's user first.
How to handle it
The key or user is valid but not allowed to do this. Check the key’s access level and resources (read-only keys can only send GET), or ask a workspace manager.
Example response
{
"detail": "You can only update tickets assigned to you or unassigned.",
"error": {
"type": "permission_error",
"code": "ticket_edit_forbidden",
"message": "You can only update tickets assigned to you or unassigned.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/ticket_edit_forbidden",
"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 ticketPOST /api/v1/tickets/{ticket_id}/replies— Reply to the customerPATCH /api/v1/tickets/{ticket_id}— Update a ticket