You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Example of a CURL request to create a Test Execution:


  • curl -X POST --url "https://xray.cloud.getxray.app/api/v2/graphql" -H "Authorization: Bearer token" -H "Content-Type: application/json" --data "{ \"query\":\"mutation{ createTestExecution(testIssueIds:[\\\"33920\\\"] jira:{fields:{summary:\\\"Test Execution for AMGT\\\",project:{key:\\\"AMGT\\\"}}}){testExecution {issueId jira(fields: [\\\"key\\\"])}warnings createdTestEnvironments}}\"}"



  • curl -X GET --url "https://xray.cloud.getxray.app/api/v2/graphql" -H "Authorization: Bearer token" -H "Content-Type: application/json" --data "{ \"query\":\"{ getTestRun(testIssueId: \\\"33920\\\", testExecIssueId: \\\"33922\\\" ){id}}\"}"


https://xray.cloud.getxray.app/doc/graphql/index.html




  • No labels