Skip to main content
POST
/
api
/
v1
/
test-management
/
{spaceSlug}
/
{projectId}
/
cases
curl -X POST "https://your-collabase.ch/api/v1/test-management/my-space/proj-abc123/cases" \
  -H "Authorization: Bearer cba_live_xYz123ABCD..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Verify login with valid credentials",
    "priority": "HIGH",
    "type": "MANUAL"
  }'
{
  "id": "tc-001",
  "title": "Verify login with valid credentials",
  "priority": "HIGH",
  "type": "MANUAL",
  "status": "DRAFT",
  "testProjectId": "proj-abc123"
}
Creates a new test case in the given test project. New cases start with status DRAFT and are not enrolled in test runs until their status is changed to READY.
You must hold write access to the target space to create a test case.

Path parameters

spaceSlug
string
required
The slug of the space the project belongs to.
projectId
string
required
The ID of the test project to add the case to.

Request body

title
string
required
Title of the test case.
description
string
Optional description or steps for the test case.
priority
string
default:"MEDIUM"
Priority level. Must be one of: LOW, MEDIUM, HIGH, CRITICAL. Defaults to MEDIUM.
type
string
default:"MANUAL"
Test case type. Must be one of: MANUAL, AUTOMATED, EXPLORATORY. Defaults to MANUAL.
suiteId
string
ID of the test suite to assign this case to. Omit to leave the case unassigned.

Response

id
string
required
Unique identifier of the newly created test case.
title
string
required
Title of the test case.
priority
string
required
Priority level: LOW, MEDIUM, HIGH, or CRITICAL.
type
string
required
Test case type: MANUAL, AUTOMATED, or EXPLORATORY.
status
string
required
Initial status of the case. Always DRAFT on creation.
testProjectId
string
required
ID of the test project this case belongs to.
curl -X POST "https://your-collabase.ch/api/v1/test-management/my-space/proj-abc123/cases" \
  -H "Authorization: Bearer cba_live_xYz123ABCD..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Verify login with valid credentials",
    "priority": "HIGH",
    "type": "MANUAL"
  }'
{
  "id": "tc-001",
  "title": "Verify login with valid credentials",
  "priority": "HIGH",
  "type": "MANUAL",
  "status": "DRAFT",
  "testProjectId": "proj-abc123"
}