POST /v1/dataQuality/testCases
Create a Test Case
Create a new test case instance applied to a specific table or column
POST
POST /v1/dataQuality/testCases
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create a Test Case
Create a new test case by linking a test definition to a specific table or column with concrete parameter values.Body Parameters
Name of the test case. Must be unique within the target entity scope.
Fully qualified name of the test definition to use (e.g.,
columnValueMaxToBeBetween).Fully qualified name of the test suite this test case belongs to.
Entity link to the target table or column. Format:
<#E::table::tableFQN> for table-level or <#E::table::tableFQN::columns::colName> for column-level.Array of parameter name/value pairs as defined by the test definition.
Description of the test case in Markdown format.
Array of owner references (users or teams) to assign.
POST /v1/dataQuality/testCases
Returns
Returns the created test case object with all specified properties and system-generated fields.Response
Unique identifier for the test case (UUID format).
Test case name.
Fully qualified name in format
table.column.testCaseName or table.testCaseName.Description of the test case.
Reference to the test definition.
Reference to the test suite.
Entity link to the target table or column.
Parameter values for this test case.
List of owners assigned to the test case.
Version number for the entity (starts at 0.1).
Create or Update (PUT)
UsePUT /v1/dataQuality/testCases instead of POST to perform an upsert. If a test case with the same fullyQualifiedName already exists, it will be updated; otherwise, a new test case is created. The request body is the same as POST.
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid request body or missing required fields |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to create test cases |
409 | ENTITY_ALREADY_EXISTS | Test case with same name already exists for this entity (POST only) |