Create Test Plan example

API URL : https://qtmcloud.qmetry.com/rest/api/latest/testplans

Method : POST

Request Header 

Request Body

{
"summary": "Test Plan Summary",
"description": "Test Plan description",
"folderId": -1,
"priority": 150,
"status": 344,
"assignee": "5bf3a00bb4cec3117e775462",
"reporter": "5ae308b858742e214dd05423",
"components": [141],
"labels": [78],
"projectId": "10002",
 "testcycles": {
    "testcycleIds": [
      "GjnUqkzFyY9",
      "rJ9U9jkSgEZ"
    ]
  }
}

Response

Success : 201 Created

{"id": "e6wtWjlf20","key": "CDT-TP-4"}

Failed : 404 Not found

{"status":404,"errorMessage":"Project does not exist or QMetry Test Management for JIRA is not enabled for this project","timestamp":"08/Jul/2019 07:05"}