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}}\"}"
Related articles
https://xray.cloud.getxray.app/doc/graphql/index.html