using REST API How to delete attachment in "On demand JIRA"?

srinivasan radhakrishnan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2013

Hi ,

I attached wrong documents in several issues in on demand JIRA, so need to develop a REST API for deleting the attachemts from on demand JIRA.

Please share the REST API format.

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2013

you have to use this following rest api

/rest/api/2/attachment/{id}(DELETE)

check this doc

https://developer.atlassian.com/static/rest/jira/5.1.6.html#id127779

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2013

Suggest an answer

Log in or Sign up to answer