I cannot create space from the Forge app.
I can read but cannot write and get “OAuth 2.0 is not enabled for method: POST /wiki/rest/api/space” error message.
The required scope (write:confluence-space) is added and app installed/upgraded:
Even global permission are ok for the app:
Same URL/payload works fine via normal REST API:
What could be wrong?
I have a few questions for you:
- Did you try to use
requestConfluence(route... instead of
requestJira(route...? Does the request work in that way?
- If the above doesn’t help, can you please confirm if the app is installed in Jira or Confluence or both? I can see Confluence from the screenshot.
reqquestConfluence solved the issue!
Copy-paste, that I missed