Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

331 views 3 14
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