Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jagadish Gubbi September 25, 2020

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 Champion
September 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?

Jagadish Gubbi October 2, 2020

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
AUG Leaders

Atlassian Community Events