v36

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-113513150.0 KB

Update Testcase

Replace the data of an existing Testcase while keeping its ID.

put/testcases/{testcaseId}

Path parameters

testcaseIdstring required
Example:248

The ID of the Testcase to update.

Request body

jsonDataobject required

The JSON data of the Testcase, which is validated against the Testset's schema.

Response

Testcase updated successfully

idstring required

The ID of the Testcase.

testsetIdstring required

The ID of the Testset this Testcase belongs to.

jsonDataobject required

The JSON data of the Testcase, which is validated against the Testset's schema.

inputsobject required

Derived from data based on the Testset's fieldMapping. Contains all fields marked as inputs, including those with validation errors.

expectedobject required

Derived from data based on the Testset's fieldMapping. Contains all fields marked as expected outputs, including those with validation errors.

Example response

{
  "validationErrors": [
    {
      "path": "/data/question",
      "message": "Required field missing"
    }
  ]
}