Skip to content
developers
Open TestCollab

Updates a tag

PUT/tags/{id}

Updates a tag

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

example.ts
import { createConfiguration, TagsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TagsApi(config);
const result = await api.updateTag({
"id": 123,
"tagPayload": {
"name": "Checkout smoke tests"
}
});
console.log(result);
Name Location Type Required Description
id path number Yes Tag ID
Field Type Required Description
id number No —
name string Yes —

200 — Updated Tag

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