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
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?
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,
// We eliminate boring from work!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you respect the case ? The API is case sensitive (at least in Jira server)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.