test-cases

Update a test case

Partially update a test case. Automatically creates a new version snapshot.

patch/v1/test-cases/{test_case_id}

Path parameters

test_case_idstring required

Headers

x-api-keystring

Request body

namestring nullable

Test case name

expected_resultstring nullable

Expected result

prioritystring nullable

Priority level

descriptionstring nullable

Description

change_sourcestring nullable

Origin of the change (e.g. 'api', 'mcp')

file_idsstring[] nullable

Legacy replacement list of test-file IDs. Pass [] to clear; omit to leave unchanged.

Example request

{
  "steps": [
    {
      "kind": "setup"
    }
  ],
  "variables": [
    {
      "name": "branch",
      "type": "string"
    }
  ]
}

Response

Test case updated

idstring required

Test case ID

version_numberinteger required

New version number

version_idstring required

New version ID

Example response

{
  "warnings": [
    {
      "code": "undeclared_reference"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.