Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,381
Community Members
 
Community Events
185
Community Groups

No project could be found with key '<project key>'.

From POST man am trying to get project details by key using the cloud jira APIS jira cloud API docs 

https://<mysite>.atlassian.net/rest/api/3/project/<peoject key>

its returning me 

{
    "errorMessages": [
        "No project could be found with key '<project key>'."
    ],
    "errors": {}
}

for authentication am using   username:<APIToken>  => this user has full access to that project.

by logging in using UI  that project is present  but  using API it return error No project could be found with key What will be the cause?

3 answers

1 accepted

1 vote
Answer accepted

I got this answer myself.

i auth header i was adding  <username>:<API Token> which was wrong

it should use  basic auth and  in place of password user API token then it has worked

 

But i still dont know why JIRA Rest APIs  not returning proper error message?  as this issue is related to authentication and its returning me project did not found. 

0 votes
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 09, 2022 • edited

Hi,

my guess is that you copied the url from the API spec or somewhere else and did not change the <project_key> placeholder with the actual project key. Say you have a project with key 'SWAP' you would use the following url

https://<mysite>.atlassian.net/rest/api/3/project/SWAP

Good luck,

Best Ulrich,

Izymes

// We eliminate boring from work!

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2022

Hi,

Did you respect the case ? The API is case sensitive (at least in Jira server)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events