200:
*Everything is Ok then the response is the new Test Case added.
(Example):
{
"id": 101486,
"title": "creation from API",
"display_order": 0,
"estimate": 7200,
"milestone_id": null,
"custom_preconds": null,
"custom_steps": null,
"custom_expected": null,
"custom_steps_separated": null,
"custom_mission": null,
"custom_goals": null,
"test_data": null,
"is_copy": false,
"copy_of_id": null,
"estimate_forecast": null,
"refs": null,
"template_id": 1,
"tenant_id": 1428,
"smoke": false,
"regression": false,
"reviewed_by_qa_lead": false,
"reviewed_by_qa_manager": true,
"reviewed_by_pm": false,
"to_automate": false,
"automation_type": null,
"priority": {
"short_name": "High",
"id": 3,
"name": "P1 - Must Test"
},
"user": {
"user_name": "stdev@yopmail.com",
"email": "stdev@yopmail.com",
"role_id": 1,
"designation_id": null,
"tenant_id": 1428,
"role_name": null,
"id": 1688,
"name": "DEV Environment"
},
"type": {
"id": 5,
"name": "Functional"
},
"section": {
"suite_id": 1370,
"is_copy": false,
"copy_of_id": null,
"parent_id": null,
"description": null,
"tenant_id": 1428,
"created_by": 1688,
"created_on": "2022-01-18T20:44:29.9296591",
"last_modified_by": 1688,
"last_modified_on": "2022-01-18T20:44:29.9296627",
"id": 9978,
"name": "added moved"
},
"suite": {
"project_id": 1326,
"description": null,
"is_copy": false,
"copy_of_id": null,
"is_master": true,
"is_baseline": true,
"parent_id": null,
"is_completed": false,
"completed_on": null,
"tenant_id": 1428,
"id": 1370,
"name": "copiable"
},
"custom_module": false,
"custom_disabled": false,
"custom_automated": false,
"custom_tobemoved": false,
"custom_desc": null,
"custom_bdd_gherkin": null,
"custom_cucumber_tags": null,
"rail_case_id": null,
"created_by": 1688,
"created_on": "2022-07-27T10:35:13.8045951-05:00",
"last_modified_by": 1688,
"last_modified_on": "2022-07-27T10:35:13.8045951-05:00"
}
400:
- Suite not found with "suite_id" or the suite does not belong to the project found by "X-PROJECT-KEY" sent through header.
- Json model sent through Body is not ok or is empty.
- "title" property is Null, Empty or Whitespace.
- Section not found with "section_id" or the Section does not belong to the Test Suite specified by "suite_id" and it does not belong to the project found by "X-PROJECT-KEY" sent through header.
- If the "milestone_id" property has a value, the API could respond that the Milestone was not found with "milestone_id" or the milestone does not belong to the project found by "X-PROJECT-KEY" sent through header.
- If the "priority_id" has a value, it is an invalid or unknown Priority with the "priority_id".
- If the "template_id" has a value, it is an invalid or unknown Priority with the "template_id".
- If the "type_id" has a value, it is an invalid or unknown Priority with the "type_id".
- The Estimate must be a timespan, invalid timespan (Note: see the parameter table to know the possible options).
401:
- If "X-TMA-KEY" header was not provided or it is not valid.
- If no user was found by "X-USER-EMAIL" header.
- If "X-PROJECT-KEY" header is not valid or any valid project was found with its value.