Skip to content
developers
Open TestCollab

Get matching test cases' id

POST/testcases/fetchIds

Get id(s) of test case(s) that match the filter criteria

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

example.ts
import { createConfiguration, TestCasesApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestCasesApi(config);
const result = await api.getTestCaseIds({
"fetchIdPayload": {
"project": 123
}
});
console.log(result);
Field Type Required Description
filterModel string No JSON Stringified
project number Yes —

200 — Action result

Field Type Required Description
result Array of number Yes ids list
Illustrative response
{
"result": []
}
Status Meaning
403 Forbidden