Remove Ticket Attachment

Deletes the specified ticket attachment.

HTTP Request

DELETE /api/sonar/tickets/:ticket_guid/attachments/:file_guid
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -X DELETE \
     https://HOSTNAME/api/sonar/tickets/8de3c683-a793-4bde-bf41-657396d17ef5/attachments/75624e2d-dc78-4a21-974b-78c2281dc089
Request Parameters
KeyRequiredTypeDescriptionNote
ticket_guidOStringTicket GUID36 characters
file_guidOStringAttachment GUID36 characters

Success Response

{}

Error Responses

Identifier is not in valid GUID format

HTTP status code 400

{
    "error_code": "invalid-param-type",
    "error_msg": "ticket_guid should be guid type."
}
Ticket is not found

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "ticket not found: 49272877-75f2-4c2f-9301-d21c4f9a106c"
}
Attachment is not found
{
    "error_code": "illegal-state",
    "error_msg": "ticket attachment not found: 75624e2d-dc78-4a21-974b-78c2281dc089"
}