Delete Tickets

DELETE https://app.alaaqat.com/api/tickets/delete-selected

Deletes one or more tickets in a single request. Each ticket's notes are deleted with it. Your API key needs the ticket-delete ability.

{warning} Deleting is permanent. A deleted ticket and its notes cannot be restored.

Header

{
    "Accept": "application/json",
    "Content-Type": "application/json"
}

Body

{
    selected_ids: string[]
}
Field Required Validation Description
selected_ids Required An array of ticket IDs The _id of every ticket to delete.
{
    "selected_ids": [
        "6652b0c1d2e3f4a5b6c7d901",
        "6652b0c1d2e3f4a5b6c7d902"
    ]
}

Send the IDs under selected_ids. Under any other name, nothing is deleted.

An ID that does not match a ticket in your account is skipped, and the rest are still deleted.

Response

200 OK

{
    "message": "Entity was deleted successfully.",
    "data": []
}

The response is the same whether every ID matched a ticket or some were skipped. To check the result, list your tickets again.