Create Check
Create an in-pipeline validation check with POST /v1/structuring/checks. Supports field_format, value_range, cross_field, and ai_coherence check types.
POST /v1/structuring/checks creates a validation check: an in-pipeline data quality rule that runs automatically against future structuring results for one schema. Each check has a type (field_format, value_range, cross_field, or ai_coherence), a severity, and a type-specific config. Newly created checks are active immediately.
config object shape depends on the check type. For value_range, provide field, min, and max. For field_format, provide field and pattern. For cross_field, provide fields and a rule expression. For ai_coherence, no config is required./v1/structuring/checksBody parameters
Request body
{
"name": "Amount range check",
"type": "value_range",
"user_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"config": {
"field": "total_amount",
"min": 0,
"max": 1000000
}
}Response
Response fields (201 Created)
Response (201 Created)
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Amount range check",
"description": null,
"type": "value_range",
"severity": "warning",
"config": { "field": "total_amount", "min": 0, "max": 1000000 },
"is_active": true,
"sort_order": 0,
"created_at": "2024-09-14T12:00:00.000Z",
"updated_at": "2024-09-14T12:00:00.000Z",
"links": {
"self": "/v1/structuring/checks/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Errors
Error responses
Newly created checks are automatically active and evaluate against all future structuring results. Pair this with POST /v1/structuring/gates and POST /v1/structuring/gates/{id}/rules to wire checks into a review gate: checks flag individual fields, while gate rules aggregate check outcomes to decide whether a result needs manual review.