---
title: "Tests - REST"
canonical: "https://docs.getxray.app/space/XRAY/301474262/Tests%20-%20REST"
format: markdown
---
You can manage Tests directly through the Jira REST API.

> Macro (toc)

> Macro (children)

# Creating and Editing Tests - Jira REST API

<span style="color: #000000">Xray Test issues can be created and edited though the</span><span style="color: #003366"> </span>[Jira REST API](https://docs.atlassian.com/jira/REST/latest/)<span style="color: #003366">. </span>


> ℹ️ **Learn more**
> ℹ️ 
> ℹ️ [https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Create+Issue](https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Create+Issue)
> ℹ️ 
> ℹ️ [https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues](https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues)


All Test issue custom fields provided by Xray can be modified using the Jira REST API:

- **Test Type ***(default Jira select field)*
- **Cucumber Test Type ***(default Jira select field)*
- **Cucumber Scenario ***(default Jira text field)*
- **Manual Test Steps ***(JSON format; example below)*


> ℹ️ The custom field IDs can be obtained using the Jira REST API Browser tool included in Jira. Each ID is of the form "**customfield_ID**".
> ℹ️ 
> ℹ️ Another option, which does not require Jira administration rights, is to invoke the "Get edit issue meta" in an existing issue (e.g., in a Test issue) as mentioned [here](https://docs.atlassian.com/jira/REST/server/#api/2/issue-getEditIssueMeta).
> ℹ️ 
> ℹ️ Example: GET http://yourserver/rest/api/2/issue/CALC-1/editmeta


### "Manual Test Steps" custom field value format

```javascript
{
   "fields":{
      "customfield_10004":{
         "steps":[
            {
               "index":1,
               "fields":{
                  "action":"Step 1",
                  "data":"input Data 1",
                  "expected result":"Excepted result 1"
               }
            },
            {
               "index":2,
               "fields":{
                  "action":"Step 2",
                  "data":"input Data 2",
                  "expected result":"Excepted result 2"
               }
            },
            {
               "index":3,
               "fields":{
                  "action":"Step 4",
                  "data":"input Data 3",
                  "expected result":"Excepted result 3"
               }
            }
         ]
      }
   }
}
	
```


Currently, it's not possible to add attachments to steps at the moment of creation. This needs to be done afterward, using the proper endpoint described in [Test Steps - REST](https://getxraydocs.atlassian.net/wiki/spaces/XRAY/pages/301506828).

Below is a full Test creation example using Jira's REST API endpoint for creating issues.

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Creates a Test in a project.
> 
> ** **<span style="color: #003366">**Request**</span>
> 
> ##### **Example Input for Manual Test**
> 
> ```
> {
>     "fields": {
>        "project":
>        { 
>           "key": "ABC"
>        },
>        "summary": "Sum of two numbers",
>        "description": "example of manual test",
>        "issuetype": {
>           "name": "Test"
>        },
> 
>        "customfield_10200": { "value": "Manual" },              
>        "customfield_10004": {
>             "steps": [
>                 {
> 	                "index":1,
>             	    "fields":{
> 	                    "action": "Step 1",
>                 	    "data": "input Data 1",
>                	  	    "expected result": "Excepted result 1"
>                     }
>                 },
>                 {
> 	                "index":2,
>             	    "fields":{
> 	                    "action": "Step 2",
>                 	    "data": "input Data 2",
>                    		"expected result": "Excepted result 2"
> 					}
>                 },
>                 {
> 	                "index":3,
>             	    "fields":{
> 	                    "action": "Step 3",
>                 	    "data": "input Data 3",
>                 	    "expected result": "Excepted result 3"
> 					}
>                 },
>                 {
> 	                "index":4,
>             	    "fields":{
> 	                    "action": "Step 4",
>                  	  	"data": "input Data 4",
>                   		"expected result": "Excepted result 4"
> 					}
>                 }
>             ]
>         }
>   
>    }
> }
> ```
> 
> **where:**
> 
> - `"customfield_10200" corresponds to the "Test Type" custom field (please check the correct customfield id for your Jira instance)`
> - "customfield_10004" corresponds to the "Manual Test Steps" custom field (please check the correct customfield id for your Jira instance)
> 
> **where:**
> 
> - `"customfield_10200" corresponds to the "Test Type" custom field (please check the correct customfield id for your Jira instance)`
> - `"customfield_10201" corresponds to the "Cucumber Test Type" custom field (please check the correct customfield id for your Jira instance)`
> - "customfield_10202" corresponds to the "Cucumber Scenario" custom field (please check the correct customfield id for your Jira instance)
>   
>   
>   **where:**
>   - `"customfield_10200" corresponds to the "Test Type" custom field (please check the correct customfield id for your Jira instance)`
>   - `"customfield_10203" corresponds to the "Generic Test Definition" custom field (please check the correct customfield id for your Jira instance)`
>     
>   <span style="color: #003366">**Responses**</span>
>   200 OK : **text/plain** : Successful. Returns a json.
>   
>   **Example Output**
>   400 BAD_REQUEST : **application/json** : Returns the error.
>   401 UNAUTHORIZED : **text/plain** : Unauthorized request.
>   500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred.


# Exporting Tests

To export tests to JSON, you need to specify the keys, the ID of the filter or JQL query of the issues you want to export. At least one query parameter has to be specified, but all 3 can be sent at the same time.

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the exported tests.
> 
> ** **<span style="color: #003366">**Request**</span>** **
> 
> ###### ** **<span style="color: #003366">**QUERY **</span><span style="color: #003366">**PARAMETERS**</span>
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `keys` | *String* | - list of keys of the tests separated by ';'. |
> | filter | Long | - id of the filter. |
> | jql | String | - jql query. |
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test?keys=TEST-123;TEST-321</span>](http://yourserver/rest/raven/1.0/api/test?keys=TEST-123;TEST-321)
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test</span>](http://yourserver/rest/raven/1.0/api/test)<span style="color: #000000">?filter=12030</span>
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test</span>](http://yourserver/rest/raven/1.0/api/test)<span style="color: #000000">?jql=project%20=%2011000%20and%20issuetype%20=%207</span>
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test</span>](http://yourserver/rest/raven/1.0/api/test)<span style="color: #000000">?keys=TEST-123;TEST-321&</span><span style="color: #000000">filter=12030&</span><span style="color: #000000">jql=</span><span style="color: #000000">project</span><span style="color: #000000">%20</span><span style="color: #000000">=</span><span style="color: #000000">%20</span><span style="color: #000000">11000</span><span style="color: #000000">%20</span><span style="color: #000000">and</span><span style="color: #000000">%20</span><span style="color: #000000">issuetype</span><span style="color: #000000">%20</span><span style="color: #000000">=</span><span style="color: #000000">%20</span><span style="color: #000000">7</span>
> > ✅ 
> > ✅ 
> > ✅ Note: It's necessary to URl escape the JQL query.
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> 
> ##### **Example Output**
> 
> ```
> [   
>    {   
>       "key":"PER-1098",
>       "self":"http://yourserver/rest/api/2/issue/15798",
>       "reporter":"admin",
>       "assignee":"admin",
>       "precondition":[   
>          {   
>             "preconditionKey":"PER-1232",
>             "self":"http://yourserver/rest/api/2/issue/16000",
>             "reporter":"admin",
>             "assignee":"admin",
>             "type":"Automated[Cucumber]",
>             "condition":"Condition example"
>          }
>       ],
>       "type":"Automated[Cucumber]",
> 	  "status":"TODO",
>       "definition":"Given I have entered <input_1> into the calculator\nAnd I have entered <input_2> into the calculator\nWhen I press <button>\nThen the result should be <output> on the screen\n\nExamples: \n    | input_1 | input_2 | button | output |\n    | 20      | 30      | add    | 50     |\n    | 2       | 5       | add    | 7      |\n    | 0       | 40      | add    | 40     |"
>    },
>    {   
>       "key":"PER-1099",
>       "self":"http://yourserver/rest/api/2/issue/15799",
>       "reporter":"admin",
>       "assignee":"admin",
>       "precondition":[   
> 
>       ],
>       "type":"Automated[Generic]",
> 	  "status":"FAIL",
>       "definition":"Test definition example"
>    },
>    {   
>       "key":"PER-1233",
>       "self":"http://yourserver/rest/api/2/issue/16001",
>       "reporter":"admin",
>       "assignee":"admin",
>       "precondition":[   
> 
>       ],
>       "type":"Manual",
> 	  "status":"PASS",
>       "definition":{   
>          "steps":[   
>             {   
>                "id":10940,
>                "index":1,
>                "step":{   
>                   "raw":"step1",
>                   "rendered":"<p>step1</p>"
>                },
>                "data":{   
>                   "raw":"data1",
>                   "rendered":"<p>data1</p>"
>                },
>                "result":{   
>                   "raw":"result1",
>                   "rendered":"<p>result1</p>"
>                },
>                "attachments":[   
> 
>                ]
>             },
>             {   
>                "id":10941,
>                "index":2,
>                "step":{   
>                   "raw":"step2",
>                   "rendered":"<p>step2</p>"
>                },
>                "data":{   
>                   "raw":"data2",
>                   "rendered":"<p>data2</p>"
>                },
>                "result":{   
>                   "raw":"result2",
>                   "rendered":"<p>result2</p>"
>                },
>                "attachments":[   
> 
>                ]
>             }
>          ]
>       }
>    }
> ]
> ```
> 
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.

# Getting all Tests statuses

It is possible to get all Test Statuses available in Xray sorted by rank.


> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the test statuses.
> 
> ** **<span style="color: #003366">**Request**</span>
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver</span>](http://yourserver)/rest/raven/1.0/api/settings/teststatuses
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> 
> ##### **Example Output**
> 
> ```
> [
>  {
>    "id": 1,
>    "rank": 1,
>    "name": "PASS",
>    "description": "The test run has passed",
>    "color": "#95C160",
>    "final": true,
>    "requirementStatusName": "OK"
>  },
>  ...
>  {
>    "id": 10,
>    "rank": 10,
>    "name": "BLOCKED",
>    "description": "The test run is blocked",
>    "color": "#111111",
>    "final": false,
>    "requirementStatusName": "NOTRUN"
>  }
> 
> ]
> ```
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.

# Exporting Test Runs

To export the test runs of a Test, you need to specify the key of the Test you wish to export the test runs from. You can filter the Test runs by Test Environment.

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the exported test runs.
> 
> ** **<span style="color: #003366">**Request**</span>** **
> 
> ###### <span style="color: #003366">**PATH **</span><span style="color: #003366">**PARAMETERS**</span>** **
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `key` | *String* | - Test Key |
> 
> ###### <span style="color: #003366">**QUERY PARAMETERS**</span>** **
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | testEnvironments | *String* | - Test execution environments separated by ','<br>if the environment contains a comma escape it with '\' |
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/{key}/testruns</span>](#)
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/{key}/testruns?testEnvironments=IOS,Android</span>](#)
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> 
> ##### **Example Output**
> 
> ```
> [   
>    {   
>       "id":1587,
>       "status":"FAIL",
> 	  "testKey":"CALC-12",
> 	  "testExecKey":"CALC-13",
>       "assignee":"admin",
>       "executedBy":"admin",
>       "startedOn":"2016-10-11T17:15:05+01:00",
>       "finishedOn":"2016-10-24T14:58:34+01:00",
> 	  "duration":1115009068,
>       "defects":[   
>          {   
>             "id":12410,
>             "key":"PER-174",
>             "summary":"Test Bug",
>             "status":"Open"
>          }
>       ],
>       "evidences":[   
>          {   
>             "id":383,
>             "fileName":"result.json",
>             "fileSize":"15 kB",
>             "created":"Today 5:41 PM",
>             "author":"admin",
>             "fileURL":"http://JIRASERVER/plugins/servlet/raven/attachment/383/result.json"
>          }
>       ],
>       "scenarioOutline":"Given I have entered <input_1> into the calculator And I have entered <input_2> into the calculator When I press <button> Then the result should be <output> on the screen Examples: | input_1 | input_2 | button | output | | 20 | 30 | add | 50 | | 2 | 5 | add | 7 | | 0 | 40 | add | 40 |",
>       "examples":[   
>          {   
>             "id":1,
>             "rank":0,
>             "values":[   
>                "input_1",
>                "input_2",
>                "button",
>                "output"
>             ],
>             "status":"PASS"
>          },
>          {   
>             "id":2,
>             "rank":1,
>             "values":[   
>                "20",
>                "30",
>                "add",
>                "50"
>             ],
>             "status":"FAIL"
>          },
>          {   
>             "id":3,
>             "rank":2,
>             "values":[   
>                "2",
>                "5",
>                "add",
>                "7"
>             ],
>             "status":"PASS"
>          },
>          {   
>             "id":4,
>             "rank":3,
>             "values":[   
>                "0",
>                "40",
>                "add",
>                "40"
>             ],
>             "status":"PASS"
>          }
>       ]
>    },
>    {   
>       "id":1588,
>       "status":"TODO",
> 	  "testKey":"CALC-12",
> 	  "testExecKey":"CALC-13",
>       "assignee":"admin",
>       "defects":[   
>          {   
>             "id":12410,
>             "key":"PER-174",
>             "summary":"Test Bug",
>             "status":"Open"
>          }
>       ],
>       "evidences":[   
>          {   
>             "id":383,
>             "fileName":"result.json",
>             "fileSize":"15 kB",
>             "created":"Today 5:41 PM",
>             "author":"admin",
>             "fileURL":"http://JIRASERVER/plugins/servlet/raven/attachment/383/result.json"
>          }
>       ],
>       "scenarioOutline":"Given I have entered <input_1> into the calculator And I have entered <input_2> into the calculator When I press <button> Then the result should be <output> on the screen Examples: | input_1 | input_2 | button | output | | 20 | 30 | add | 50 | | 2 | 5 | add | 7 | | 0 | 40 | add | 40 |",
>       "examples":[]
>    }
> ]
> ```
> 
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.

# Exporting Test Pre-Conditions

To export the pre-conditions of a Test, you need to specify the key of the Test you wish to export the test pre-conditions from

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the test pre-conditions of a given test.
> 
> <span style="color: #003366">**Request**</span>
> 
> ###### <span style="color: #003366">**PATH **</span><span style="color: #003366">**PARAMETERS**</span>
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `key` | *String* | - key of the test. |
> 
> > ✅ Example Request  
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/FLYTOMOON-76/preconditions</span>](http://yourserver/rest/raven/1.0/api/test/FLYTOMOON-76/preconditions)
> 
> ### <span style="color: #003366">**Responses**</span>
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> ##### **Example Output**
> 
> ```
> [
>     {
>         "id": 12602,
>         "rank": 1,
>         "key": "FLYTOMOON-7",
>         "self": "http://localhost:8080/rest/api/2/issue/12602",
>         "reporter": "john",
>         "assignee": "bmpc",
>         "type": "Manual",
>         "condition": "Fuel the rockets before launch"
>     },
>     {
>         "id": 13409,
>         "rank": 2,
>         "key": "FLYTOMOON-77",
>         "self": "http://localhost:8080/rest/api/2/issue/13409",
>         "reporter": "admin",
>         "assignee": "admin",
>         "type": "Manual",
>         "condition": "The PC must be turned on"
>     },
>     {
>         "id": 12718,
>         "rank": 3,
>         "key": "FLYTOMOON-29",
>         "self": "http://localhost:8080/rest/api/2/issue/12718",
>         "reporter": "admin",
>         "assignee": "admin",
>         "type": "Manual",
>         "condition": "Ligar o computador.."
>     }
> ]
> ```
> 
>   
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test pre-conditions.

# Exporting Test Sets

To export the test sets of a Test, you need to specify the key of the Test you wish to export the test sets from

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the exported test sets.
> 
> ** **<span style="color: #003366">**Request**</span>** **
> 
> ###### ** **<span style="color: #003366">**PATH **</span><span style="color: #003366">**PARAMETERS**</span>
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `key` | *String* | - Test Key |
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/{key}/testsets</span>](#)
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> ##### **Example Output**
> 
> ```
> [
>    {
>       "id":13602,
>       "key":"CALC-50",
>       "summary":"Test Set for all tests",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-50",
> 	  "environments" : [
> 		"IOS",
> 		"Android"
> 	  ]
>    },
>    {
>       "id":13600,
>       "key":"CALC-51",
>       "summary":"Test Set of v2.0",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-51",
> 	  "environments" : [
> 		"IOS",
> 		"Android"
> 	  ]
>    }
> ]
> ```
> 
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.

# Exporting Test Executions

To export the test executions of a Test, you need to specify the key of the Test you wish to export the test executions from

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the exported test executions.
> 
> ** **<span style="color: #003366">**Request**</span>** **
> 
> ###### ** **<span style="color: #003366">**PATH **</span><span style="color: #003366">**PARAMETERS**</span>
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `key` | *String* | - Test Key |
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/{key}/testexecutions</span>](#)
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> ##### **Example Output**
> 
> ```
> [
>    {
>       "id":13602,
>       "key":"CALC-52",
>       "summary":"Test Execution for all tests",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-52"
>    },
>    {
>       "id":13600,
>       "key":"CALC-53",
>       "summary":"Test Execution of v2.0",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-53"
>    }
> ]
> ```
> 
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.

# Exporting Test Plans

To export the test plans of a Test, you need to specify the key of the Test you wish to export the test plans from

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> Returns a json with the exported test plans.
> 
> ** **<span style="color: #003366">**Request**</span>** **
> 
> ###### ** **<span style="color: #003366">**PATH **</span><span style="color: #003366">**PARAMETERS**</span>
> 
> | **parameter** | **type** | **description** |
> | --- | --- | --- |
> | `key` | *String* | - Test Key |
> 
> > ✅ **Example Request**
> > ✅ 
> > ✅ <span style="color: #000000">curl -H "Content-Type: application/json" -X GET -u admin:admin </span>[<span style="color: #000000">http://yourserver/rest/raven/1.0/api/test/{key}/testplans</span>](#)
> 
> ### <span style="color: #003366">**Responses**</span>** **
> 
> 200 OK : **text/plain** : Successful. Returns a json.
> 
> ##### **Example Output**
> 
> ```
> [
>    {
>       "id":13602,
>       "key":"CALC-54",
>       "summary":"Test Plan for all tests",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-54"
>    },
>    {
>       "id":13600,
>       "key":"CALC-55",
>       "summary":"Test Plan of v2.0",
>       "self":"http://JIRASERVER/testJira/rest/api/2/issue/CALC-55"
>    }
> ]
> ```
> 
> 400 BAD_REQUEST : **text/plain** : Returns the error.
> 
> 401 UNAUTHORIZED : **text/plain** : The Xray for JIRA license is not valid.
> 
> 500  INTERNAL SERVER ERROR : **text/plain** : An internal error occurred getting the test steps.


To export the test sets of a Test, you need to specify the key of the Test you wish to export the test sets from.