Forums

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

Error in REST API while getting project details

Dinesh Patil
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!
September 18, 2023

I am trying to execute REST API to get project details from Java code but getting error while accessing it.

REST API: /rest/api/2/project/DINESHKAN

Error: [https://dineshpt.atlassian.net/] Not Found: {"errorMessages":["No project could be found with key 'DINESHKAN'."],"errors":{}}

 

2 answers

0 votes
Dinesh Patil
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!
September 21, 2023

Hi Felix,

Thank you so much for your response.

Project Dinesh Kanban Project with key DINESHKAN exists in the system and i can access the project manually. 

Also Project access is Open so i have necessary permissions and I am using basic authentication with my username- dinesh.valmikpatil@uobgroup.com and API Token as password to get project details from the REST API.

Is there any else you think might be missing? I am using trial version of Atlassian so could it due to that? Please advise.

Thank you.

0 votes
Felix Linh
Contributor
September 18, 2023

Hi Dinesh, nice to meet you and I am very excited to suggest this article.

Please follow below steps:
-Ensure that the project with the key 'DINESHKAN' actually exists in the system. You can cross-verify it by accessing the project manually or checking the project list.
-Ensure that you have the necessary permissions and authentication credentials to access the project details via the REST API. Make sure you have the appropriate access level and correct authentication/token credentials.

I hope this helps, even if it's just a small one.  😐

Thank you,

Felix M.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events