I've been trying the following in Postman:
GET https://{{mycloudinstance}}/rest/api/2/mypreferences --user foo@bar.com:{{myjiratoken}}
and always get the response:
{ "errorMessage": "Site temporarily unavailable"}
I'm logged into the site so I'm pretty sure it's available.
I saw somewhere on the developer forum that you need to use a different base URL when using a token, but that discussion was for Confluence and I can't find a similar comment for Jira.
I was having this problem, Postman version 9.3.1 for Windows, Jira Cloud.
I had to remove any pre-existing cookie by:
And remove the Postman-Token header:
Authorization: Basic Auth
Username: <your email>
Password: <your API token>
Headers:
Check Host (calculated when request is sent)
Content-Type: application/json
The above got basic GET requests working for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Fernando Bordallo I missed that. Unfortunately, that didn't do the trick.
I have 2 different API tokens:
I've tried both of them but still get the same result. I tried the label with the token generated via id.atlassian.com/manage/api-tokens, I tried the key from Test Management, I mixed them up, but no success.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello again @joel
Where the docs state key it does not refer to your token or any other access key. It refers to the key of the key:value pair of the user preferences you are requesting.
For example:
Your API request would be the following:
curl --request GET \ --url '/rest/api/2/mypreferences?key=personalized.nickName' \ --user 'my.email@example.com:my_api_token' \ --header 'Accept: application/json'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having the same problem here with:
POST https://{{mycloudinstance}}/rest/api/3/issue
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post
for creating an issue.
The documentation about the fields for this request doesn't help much either..
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.