Skip to content
developers
Open TestCollab

Deletes given tag

DELETE/tags/{id}

Deletes 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.deleteTag({
"id": 123
});
console.log(result);
Name Location Type Required Description
id path number Yes Tag ID

200 — Tag deleted

Field Type Required Description
status boolean Yes —
affected number No —
message string No —
Illustrative response
{
"status": true,
"affected": 123,
"message": "example"
}
Status Meaning
401 Unauthorized
403 Forbidden
404 Not found
500 Internal server error