Remove Tickets
Deletes the specified tickets.
Required Permissions
Requires the MEMBER role or higher.
HTTP Request
DELETE /api/sonar/tickets
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
-X DELETE \
"https://HOSTNAME/api/sonar/tickets?guids=638cfeb2-e259-46af-961a-1eeb65ea35f0"
Request Parameter
| Key | Required | Type | Description | Note |
|---|---|---|---|---|
| guids | O | List (of strings) | Ticket GUID list | Comma-separated list |
Success Response
{
"failures": []
}
Error Responses
Ticket is not found
HTTP status code 200
{
"failures": [
{
"id": "638cfeb2-e259-46af-961a-1eeb65ea35f1",
"reason": "ticket-not-found"
}
]
}
Ticket Identifier is not in valid GUID format
HTTP status code 400
{
"error_code": "invalid-param-type",
"error_msg": "guids should be guid type."
}