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
Jira Administrator
Configure Jira Software, Jira Core, or Jira Service Management, including global settings, permissions, and schemes.
Managing Jira Projects Cloud
Learn to create and configure company-managed projects in Jira Software and partner effectively with Jira Admins.
Learning Path
Become an effective Jira Software Project Admin
This learning path is designed for team leaders who configure Jira Software projects to match a team's processes.