403 for all rest calls in Forge

Hi,

I’m new to this platform. I try to call rest api in my forge app. irrespective of the call/method I use it always returns 403 saying this method is not enabled for OAuth


**INFO    14:30:04.344  a03f3176360b2a23  {**
**  errorMessages: [**
**    'OAuth 2.0 is not enabled for method: PUT /rest/api/3/DEV-20/comment'**
**  ]**
**}**

Any suggestions please

-Leo

Hi Leo,

I think this API does not exists - or did you make a typo in your post?

There are two others which you are most likely interested in:

Add comment:

POST /rest/api/3/issue/{issueIdOrKey}/comment

Update comment:

Update comment: PUT /rest/api/3/issue/{issueIdOrKey}/comment/{id}

The 403 message is an unfortunate response code here as it should rather be 404, but it’s a bit tricky under the hood.

Hope that it helps,
Alek.

Hi @AleksanderMierzwick1,

Thanks for correcting, my bad I completely missed that typo in the code

-Leo