YouTrack Standalone 2017.1 Help

Delete Attachment from an Issue

DELETE /issue/{issue}/attachment

Get all issue attachments

GET /rest/issue/{issue}/attachment/{attachment}

Parameters:

NameTypeDescription
issueissueByIdID of an issue to get attachments from.
attachmentattachmentByIdID of an attachment to delete.

Sample

Request

DELETE http://localhost:8081/rest/issue/HBR-63/attachment/45-46 Cookie: $Version=0; JSESSIONID=6nu9yemgzc1t1wigbv0y1ldwb; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml; charset=UTF-8 Cache-Control: no-cache, no-store, no-transform, must-revalidate Content-Length: 0 Server: Jetty(7.2.0.v20101020)
Last modified: 18 April 2017