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,457,001
Community Members
 
Community Events
176
Community Groups

error 404 by using xray rest test repository api while creating a folder

hello i try to use xray api under postmann
I use an api token for authentification. My user has the right to create under Jira and the project SCRUM exist with xray enable

i've got this message as result :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
    <status-code>404</status-code>
</status>
i try to search on the forum but i dont find a suitable answer. What can i check to find the issue ?
thanks

 

1 answer

i seek on the community group and i find that some errors could occur because of the authentification. i try to fix it on postmann but i dont find the correct way. i use api token and i see that a lot of users use mail: api encoded on base64 on the header . i a  a noob with postman so i dont see how in the api how to settle this 

so -what i have to choose in authorization : Api key or bearer token?

- have i to modify the body of the pre request script ?

    method: 'POST',
    header: {
        'content-type''application/json',
        client_id: pm.environment.get("client_id"),
        client_secret: pm.environment.get("client_secret"
    },
    body: {
        mode: 'raw',
        raw: JSON.stringify({ client_id: pm.environment.get("client_id"), client_secret: pm.environment.get("client_secret") })
    }
}, function (errres) {
    pm.environment.set("AUTH_TOKEN"res.json());
});

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events