Skip to content
developers
Open TestCollab

Add tags

POST/tags

Add tags for test cases

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.addTags({
"testCasesTagPayload": {
"name": "Checkout smoke tests",
"project": 123
}
});
console.log(result);
Field Type Required Description
name string Yes —
project number Yes —

200 — result

Field Type Required Description
id number Yes —
name string Yes —
test_case_count number No —
Illustrative response
{
"id": 123,
"name": "example",
"test_case_count": 123
}
Status Meaning
401 Unauthorized
403 Forbidden
404 Not found
500 Internal server error