Forums

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

XRay - Rest API problem

Rafał Soflab
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2020

HI

1) Could you help me with Rest API? I need to add Test Sets from different encoding (ISO-8859-2)

/rest/api/2/issue

I have an error message in response:

{"errorMessages": ["Invalid UTF-8 middle byte 0x70\n at [Source: org.apache.catalina.connector.CoyoteInputStream@30438fe7; line: 6, column: 42]"]}

 

req:

{
"fields": {
"project": {
"key": "SET"
},
"summary": "udostępnianie danych pracowników medycznych",

"issuetype": {
"name": "Test Set"
}
}
}

 

2) How can I add (by REST Api) many Test Sets?

 

 

1 answer

0 votes
José Domingues _Xray_
Atlassian Partner
January 17, 2020

Hi Rafal,

Using our REST API, you can create, update and delete Test Sets.

In order to create, you use the following request:

curl -H "Content-Type: application/json" -X POST -u admin:admin --data @example.json http://yourserver/rest/raven/1.0/api/testset/TEST-123/test

*Example

We can also explore the documentation related to that:

Best Regards,
Team Xray

Suggest an answer

Log in or Sign up to answer