---
title: "Create a new test case"
method: POST
path: "/testCases"
tags: ["TestCase"]
---

# Create a new test case

`POST /testCases`

## Request body

- TestCase — A high-level test case
  - `id` string — Unique identifier of the TestCase
  - `workspace_id` string — Unique identifier for the associated Workspace
  - `name` string — Name of the TestCase
  - `description` string — Description of the TestCase
  - `created_time` integer — Time at which the TestCase was created
  - `created_by_id` string — The ID of the user who created this TestCase
  - `last_updated_time` integer — time the TestCase was last updated
  - `last_updated_by_id` string — The ID of the user who last updated this TestCase

## Response `201`

TestCase created successfully

- TestCase — A high-level test case
  - `id` string — Unique identifier of the TestCase
  - `workspace_id` string — Unique identifier for the associated Workspace
  - `name` string — Name of the TestCase
  - `description` string — Description of the TestCase
  - `created_time` integer — Time at which the TestCase was created
  - `created_by_id` string — The ID of the user who created this TestCase
  - `last_updated_time` integer — time the TestCase was last updated
  - `last_updated_by_id` string — The ID of the user who last updated this TestCase

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Entity not found
- `501` — Unknown error
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
