Skip to main content
POST
POST /v1/dataQuality/testDefinitions

Create a Test Definition

Create a custom test definition to define organization-specific data quality validation logic.

Body Parameters

name
string
required
Name of the test definition. Must be unique across all test definitions.
displayName
string
Human-readable display name for the test definition.
description
string
Description of what this test validates, in Markdown format.
entityType
string
required
The entity type this test targets: TABLE or COLUMN.
testPlatforms
array
required
Array of supported test platforms. Typically ["OpenMetadata"].
supportedDataTypes
array
Array of data types this test can be applied to (e.g., STRING, INT, DOUBLE, VARCHAR, CHAR, TEXT, NUMBER, FLOAT, BOOLEAN). Only applicable when entityType is COLUMN.
parameterDefinition
array
Array of parameter definitions that this test accepts.
owners
array
Array of owner references (users or teams) to assign.
POST /v1/dataQuality/testDefinitions

Returns

Returns the created test definition object with all specified properties and system-generated fields.

Response

id
string
Unique identifier for the test definition (UUID format).
name
string
Test definition name.
fullyQualifiedName
string
Fully qualified name (same as name for test definitions).
displayName
string
Human-readable display name.
description
string
Description of what the test validates.
entityType
string
Target entity type: TABLE or COLUMN.
testPlatforms
array
Supported test platforms.
supportedDataTypes
array
Data types this test can be applied to.
parameterDefinition
array
Parameters accepted by this test definition.
provider
string
Always user for custom test definitions.
version
number
Version number for the entity (starts at 0.1).

Create or Update (PUT)

Use PUT /v1/dataQuality/testDefinitions instead of POST to perform an upsert. If a test definition with the same name already exists, it will be updated; otherwise, a new test definition 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