Skip to content
developers
Open TestCollab

Assign all test cases of test plan to user

POST/testplans/assignAll

Assign all test cases of test plan to user

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

example.ts
import { createConfiguration, TestPlansAssignmentApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestPlansAssignmentApi(config);
const result = await api.assignAll({
"testPlanAssignmentAllPayload": {
"project": 123,
"user": 123,
"testplan": 123
}
});
console.log(result);
Field Type Required Description
project integer Yes —
user integer Yes —
testplan integer Yes —

200 — Assignment result

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