Skip to content
developers
Open TestCollab

Add test cases to a test plan

POST/testplantestcases

Array of test cases IDs -or- array of filter queries

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, TestPlanTestCasesApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestPlanTestCasesApi(config);
const result = await api.addTestPlanTestCases({
"testPlanTestCasePayload": {
"testplan": 123
}
});
console.log(result);
Field Type Required Description
testplan number Yes —
testcase number No —
project number No —
assigned_to number No —
status string No —
config_assignees Config Wise Assignee Collection No —
config_assignees[].config_id number Yes —
config_assignees[].assigned_to number No Id of the assigned user

200 — Action status details

Illustrative response
{}
Status Meaning
401 Unauthorized
403 Forbidden
404 Not found
500 Internal server error