Hi,
I need to delete the attachment from an issue in jira using REST API.
I am using below end point :
/rest/api/3/attachment/{id}
id = Attachment id
The error thrown is 405 Method Not Allowed.
User Role : Project Administrator
Thanks and Regards,
Satish Kumar
Hello @Satish.Kumar25 ,
The API seems to be working correctly.
Steps I used to verify:
* Use the GET "/rest/api/3/issue/{{issuekey}}"
* Fetch the Attachment ID and use it in the GET "/rest/api/3/attachment/{{attachmentID}}"
* Once you get a valid response from the above API, just edit the call type to DELETE instead of GET
Hope this helps
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Become an effective Jira admin
Manage global settings and shared configurations called schemes to achieve goals more quickly.
Streamline Jira administration with effective governance
Improve how you administer and maintain Jira and minimize clutter for users and administrators.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.