POST /rest/api/3/issue | OAuth 2.0 is not enabled for this method

Hello,

I am developing an OAuth 2.0 3LO app.

When trying to POST to https://api.atlassian.com/ex/jira/{CloudID}/rest/api/3/issue i get the error “OAuth 2.0 is not enabled for this method”

The documentation for this endpoint shows the required OAuth scope of “write:jira-work”, meaning the endpoint should support OAuth 2.0.

Other endpoints used, GET /rest/api/3/project/{projectKey}/components for example, so far by my project do not return this error.

Hi @Alex10, welcome to the Atlassian developer community.

I reproduced the scenario, and I was able to create a Jira issue by using the POST request with write:jira-work and read:jira-work scopes.

Could you please inform me the list of scopes that your app is using?

You may confirm this information by making a GET request with the Accessible Resources documentation.

Thank you.
Guilherme Bueno

cross-posting from Solved: POST /rest/api/3/issue | OAuth 2.0 is not enabled ...

I was trying to GET instead of POST to the /rest/api/3/issue endpoint. Correcting the method resulted in a successful API call.

What threw me off was that the message returned by the API was “OAuth 2.0 is not enabled for this method” and a code 500, instead of a 405 and something like “Method not supported for this endpoint”.

1 Like