Skip to content
developers
Open TestCollab

Get matching test plans' id(s)

POST/testplans/fetchIds

Get id(s) of test plan(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, TestPlansApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestPlansApi(config);
const result = await api.getTestPlanIds({
"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