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
Improve user experience across Jira with global settings
Learn how to set up and configure a Jira site, manage Jira permissions, and configure Jira apps and integrations.
Learning Path
Streamline projects across Jira with shared configurations
Build Jira work items with reusable configurations called schemes, and reduce administrative work with automation.
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.