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,463,249
Community Members
 
Community Events
176
Community Groups

404 error while trying to create a folder in xray test repository

404 error while creating a folder in xray test repository.

POST : https://TestComp.atlassian.net/rest/raven/1.0/api/testrepository/TES/folders/-1

Authorization Type: Basic Auth

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
<status-code>404</status-code>
<message>null for uri: https://TestComp.atlassian.net/rest/raven/1.0/api/testrepository/TES/folders/-1</message>
</status>

Do I need to request any additional permission from JIRA admin for accessing XRAY API's?

 

1 answer

0 votes
Hana Kučerová Community Leader Sep 27, 2020

Hi,

according to the documentation https://docs.getxray.app/display/XRAY/Test+Repository+-+REST your URL seems right: /rest/raven/1.0/api/testrepository/<projectKey>/folders/<folderId>

Is "TES" valid key for a project using Xray?

Did you try any other endpoints to test the functionality at all?

Does the user, who is used for the authorization, has the permission to see the "TES" project and has the possibility to create the folder manually in Jira?

Hi Hana,

Thanks for your response.

"TES" was just a sample Project key.

Looks like Jira admin has to provide me with the API key based on the information specified in the below url which I have requested for.

https://docs.getxray.app/display/XRAYCLOUD/Global+Settings%3A+API+Keys

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events