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,300,920
Community Members
 
Community Events
165
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

0 votes
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. 

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

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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

407 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you