I am submitting the following curl command to a Jira Cloud environment:
curl --location --request POST 'https://xxx.atlassian.net/rest/api/3/issue/MACBIS-6969/attachments' \--header 'X-Atlassian-Token: no-check' \--header 'Content-Type: multipart/form-data; boundary=f7fc6d5c1ffcea457fef7eea21c973cd' \--header 'Authorization: Basic <TOKEN>' \--data-raw '--f7fc6d5c1ffcea457fef7eea21c973cd\r\nContent-Disposition: form-data; name="file"; filename="file.csv"\r\n\r\nThis is a test file\r\n--f7fc6d5c1ffcea457fef7eea21c973cd--\r\n'
This works as expected in my test environment. When I submit it to my production environment, it returns a 405 error without any additional information as to what went wrong.
Any idea what this 405 error would refer to? I have checked permissions on the issue and project. Create Attachment and Edit Issue are both confirmed. The Issue exists in the target system.
The REST API documentation doesn't define the 405 error. I am at a loss as to what is going wrong.
Did you solved this? I have same issue using GET https://jira-staging.bsonetwork.net/rest/servicedeskapi/request/Blah10066w/attachment
This is their docs https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-attachment-get.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.