List Diffs
List schema graph diffs: field additions, removals, and type changes between class versions, risk-classified as safe, moderate, or critical for review.
A schema diff records the structural difference between two consecutive versions of a schema graph class: which fields were added, which were removed, and which changed type. Diffs are computed automatically after each schema generation and carry a risk classification plus a review_status, giving you an auditable review queue over how your document ontology evolves.
Diffs classified safe (additions only) are approved automatically. moderate and critical diffs are created with review_status: "pending" so a human can acknowledge or flag the change via the approve and reject endpoints. Filter by schema_class_id to audit one document type, or by status to build a review queue.
safe means new fields only. moderate means compatible type changes or required-status changes. critical means any field removal, an incompatible type change, or a large structural reorganization./v1/schema-graph/diffsQuery parameters
curl
Response
Response fields
Response
{
"data": [
{
"id": "diff-uuid-1",
"schema_class_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"from_version": 2,
"to_version": 3,
"review_status": "pending",
"classification": "moderate",
"added_fields": [{ "name": "total", "type": "number" }],
"removed_fields": [],
"type_changes": [{ "name": "invoice_date", "from_type": "string", "to_type": "date" }],
"created_at": "2024-09-14T10:00:00.000Z",
"links": { "self": "/v1/schema-graph/diffs/diff-uuid-1" }
}
]
}Errors
Error responses
Filter by status=pending to build a review queue for ontology changes. Inspect the added_fields, removed_fields, and type_changes arrays to assess impact, then call POST /v1/schema-graph/diffs/{id}/approve or /reject to record a verdict on each diff. The classification band tells you which diffs need careful review: start with critical.