Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When I call label rest api, got 403

zhansheng
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2020

I can call most rest api successfully, but when I call label rest api, I got 403

403 - {"errorMessages":["OAuth 2.0 is not enabled for this method."]}

The rest url is:

https://api.atlassian.com/ex/jira/{MY_CLIENT_ID}/rest/api/3/label

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 24, 2020

Hello @zhansheng

Welcome to Atlassian Community!

I must confess that the format of your REST API call looks a little bit different than what is described in our REST API documentation for Jira Cloud:

Get Labels - Jira Cloud Rest API 

Can you please try the URL below and check if you keep getting the error? Just replace "yourdomain" by your site address:

https://yourdomain.atlassian.net/rest/api/3/label

Let us know if that worked for you.

zhansheng
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 25, 2020

I am using [Construct the request URL] in 
https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/

question.png

I can call /rest/api/3/issue successfully.

But /rest/api/3/label got 403

Suggest an answer

Log in or Sign up to answer