/api/v1/dataset-pairs/{datasetPairUuid}/validation-tests
Requires the GV.APIContributor application role, or a higher role (Owner > Contributor > Reader).
Operation ID · create_validation_test
Request example
Authentication and access
- Required role: GV.APIContributor
- Data classification: metadata
- Side effects: configurationWrite
- Microsoft Entra delegated user token
- Microsoft Entra application token
Parameters
datasetPairUuid
path Required Opaque Dataset Pair UUID.string (uuid)
Opaque Dataset Pair UUID.
Idempotency-Key
header Required Required caller-chosen retry identity. Use 1-128 visible ASCII characters and reuse it only for an exact retry of this request.string
minimum length: 1 · maximum length: 128
Request body
Requiredapplication/json
V1RowCountTest | V1AggregateFieldTest | V1SetTest | V1ValueTest
Any of
Option 1: V1RowCountTest
Schema V1RowCountTest
object
Properties
comment
string
- Default:
""
definitionVersion
integer
- Constant:
1 - Default:
1
functionCode— Required
string
- Constant:
"COUNT_ROWS"
operator
Schema V1ComparisonOperator
string
- Allowed values:
"=","<>","<","<=",">",">=" - Default:
"="
threshold
string
Exact non-negative decimal encoded as a JSON string, with at most 26 integer digits and 12 fractional digits.
- Default:
"0"
object
Properties
comment
string
- Default:
""
definitionVersion
integer
- Constant:
1 - Default:
1
functionCode— Required
string
- Allowed values:
"COUNT","COUNT_DISTINCT","MIN","MAX","AVG","SUM"
operator
Schema V1ComparisonOperator
string
- Allowed values:
"=","<>","<","<=",">",">=" - Default:
"="
sourceField— Required
string
minimum length: 1 · maximum length: 1024
sourceObservationScope
V1RootObservationScope | V1CollectionObservationScope
One of
Selected by kind.
Option 1: V1RootObservationScope
Schema V1RootObservationScope
object
Properties
kind
string
- Constant:
"root" - Default:
"root"
object
Properties
collectionPath— Required
string
minimum length: 1 · maximum length: 1024
kind— Required
string
- Constant:
"collection"
targetField— Required
string
minimum length: 1 · maximum length: 1024
targetObservationScope
V1RootObservationScope | V1CollectionObservationScope
One of
Selected by kind.
Option 1: V1RootObservationScope
Schema V1RootObservationScope
object
Properties
kind
string
- Constant:
"root" - Default:
"root"
object
Properties
collectionPath— Required
string
minimum length: 1 · maximum length: 1024
kind— Required
string
- Constant:
"collection"
threshold
string
Exact non-negative decimal encoded as a JSON string, with at most 26 integer digits and 12 fractional digits.
- Default:
"0"
object
Properties
comment
string
- Default:
""
comparisonOptions
Schema V1SetComparisonOptions
object
All of
Constraint 1: unknown
unknown
Conditional constraints
caseInsensitive
boolean
- Default:
false
nullsEqual
boolean
- Default:
true
setNullsAsMember
boolean
- Default:
false
trimTrailingSpaces
boolean
- Default:
false
definitionVersion
integer
- Constant:
1 - Default:
1
evidenceCaptureLimit
integer
- Default:
100
functionCode— Required
string
- Allowed values:
"SET_A_IN_B","SET_B_IN_A","SET_A_EQUALS_B"
maxBadRecords
integer
- Default:
0
sourceField— Required
string | V1FieldBinding
Any of
Option 1: string
string
minimum length: 1 · maximum length: 1024
Option 2: V1FieldBinding
Schema V1FieldBinding
object
All of
Constraint 1: unknown
unknown
Conditional constraints
field— Required
string
minimum length: 1 · maximum length: 1024
format
string
Optional parser format accepted only for date/timestamp transforms.
- Default:
""
transform
Schema V1FieldTransform
string
- Allowed values:
"none","to_string","to_long","to_decimal","to_double","to_boolean","to_date","to_timestamp","to_peer_numeric" - Default:
"none"
sourceObservationScope
V1RootObservationScope | V1CollectionObservationScope
One of
Selected by kind.
Option 1: V1RootObservationScope
Schema V1RootObservationScope
object
Properties
kind
string
- Constant:
"root" - Default:
"root"
object
Properties
collectionPath— Required
string
minimum length: 1 · maximum length: 1024
kind— Required
string
- Constant:
"collection"
targetField— Required
string | V1FieldBinding
Any of
Option 1: string
string
minimum length: 1 · maximum length: 1024
Option 2: V1FieldBinding
Schema V1FieldBinding
object
All of
Constraint 1: unknown
unknown
Conditional constraints
field— Required
string
minimum length: 1 · maximum length: 1024
format
string
Optional parser format accepted only for date/timestamp transforms.
- Default:
""
transform
Schema V1FieldTransform
string
- Allowed values:
"none","to_string","to_long","to_decimal","to_double","to_boolean","to_date","to_timestamp","to_peer_numeric" - Default:
"none"
targetObservationScope
V1RootObservationScope | V1CollectionObservationScope
One of
Selected by kind.
Option 1: V1RootObservationScope
Schema V1RootObservationScope
object
Properties
kind
string
- Constant:
"root" - Default:
"root"
object
Properties
collectionPath— Required
string
minimum length: 1 · maximum length: 1024
kind— Required
string
- Constant:
"collection"
object
Properties
comment
string
- Default:
""
comparisonOptions
Schema V1ValueComparisonOptions
object
Properties
caseInsensitive
boolean
- Default:
false
nullsEqual
boolean
- Default:
true
trimTrailingSpaces
boolean
- Default:
false
definitionVersion
integer
- Constant:
1 - Default:
1
evidenceCaptureLimit
integer
- Default:
100
functionCode— Required
string
- Allowed values:
"VALUE","OUTER_VALUE"
maxBadRecords
integer
- Default:
0
operator
Schema V1ComparisonOperator
string
- Allowed values:
"=","<>","<","<=",">",">=" - Default:
"="
sourceField— Required
Schema V1FieldBinding
object
All of
Constraint 1: unknown
unknown
Conditional constraints
field— Required
string
minimum length: 1 · maximum length: 1024
format
string
Optional parser format accepted only for date/timestamp transforms.
- Default:
""
transform
Schema V1FieldTransform
string
- Allowed values:
"none","to_string","to_long","to_decimal","to_double","to_boolean","to_date","to_timestamp","to_peer_numeric" - Default:
"none"
targetField— Required
Schema V1FieldBinding
object
All of
Constraint 1: unknown
unknown
Conditional constraints
field— Required
string
minimum length: 1 · maximum length: 1024
format
string
Optional parser format accepted only for date/timestamp transforms.
- Default:
""
transform
Schema V1FieldTransform
string
- Allowed values:
"none","to_string","to_long","to_decimal","to_double","to_boolean","to_date","to_timestamp","to_peer_numeric" - Default:
"none"
threshold
string
Exact non-negative decimal encoded as a JSON string, with at most 26 integer digits and 12 fractional digits.
- Default:
"0"
Responses
This guide summarizes response status codes and headers. Retrieve the deployed, authenticated OpenAPI document for the exact response body schemas and examples. The API also provides an authenticated Swagger UI; opening it in a browser does not automatically attach a bearer token. Error responses useapplication/problem+json. The response’s stable code and type map to the error-code reference.
201
Validation Test created.Headers
- ETag:
string - Idempotency-Replayed:
boolean - Location:
string
401
A valid Microsoft Entra bearer token is required.402
The organization entitlement does not permit this mutation.403
The authenticated principal does not have the required role.404
The resource does not exist in this tenant.409
The operation conflicts with current resource or Azure state.422
The request is syntactically valid but semantically invalid.429
The bounded application request rate was exceeded.Headers
- Retry-After: Seconds to wait before retrying.
integerminimum: 1
503
A required dependency is temporarily unavailable.Headers
- Retry-After: Seconds to wait before retrying.
integerminimum: 1