documents.extract
still accepts schema_id once a family exists. Validate a draft first with
documents.validate_extract_schema or POST /v1/extract/schema-validation.
- Python
- TypeScript
- curl
Versioning
POST /v1/extraction-schemascreates a family (sch_…) and version 1POST /v1/extraction-schemas/{schema_id}/versionsappends an immutable version- Extract
schema_versionpins a version; omit it to use latest - Tenant keys create and append only their own schemas
- Reads include tenant and platform families; a tenant row wins on id clash
- No drafts or in-place edits
Deleting a schema
DELETE /v1/extraction-schemas/{schema_id} deletes a schema you created, with
every version. NDI removes its name, description and JSON Schema at once and
keeps only the id, version numbers and timestamps, so finished jobs that used it
still show which schema_id and schema_version they ran with. A job accepted
before the delete keeps its own copy of the schema and finishes. After the
delete, reading the schema or starting Extract with its schema_id returns
404 schema_not_found. Deleting it again returns 204. Platform schemas cannot
be deleted.