Update object extractor (auto-creates new version)
Partial update of an ObjectExtractor. If any version-bearing field
differs from the latest version, a new ObjectExtractorVersion row is
created automatically. Version-bearing fields:
extractable_pydantic_class, extraction_prompt, llm_model,
add_anchoring_object, filtered_on_block_types, block_types,
extract_single_object, block_grouping_config,
alerts_additional_instructions.
Pass set_latest_as_default: true to promote the newly created
version to the default in the same call.
Authorizations
Use Authorization: Bearer
Path Parameters
UUID of the project
UUID of the extractor
Body
Extracts structured data (instances of a Pydantic model) from chunks or blocks of documents.
Human-readable name.
"Contract clauses"
Short description shown in the UI.
"Extract obligations and effective dates from contracts."
"gpt-4o"
Display name of the object class (auto-derived from extractable_pydantic_class if omitted).
"ContractClause"
Python source of the Pydantic model used as the extraction schema.
"from pydantic import BaseModel\nfrom typing import Optional\n\nclass ContractClause(BaseModel):\n clause_type: str\n text: str\n effective_date: Optional[str] = None\n"
"Extract every distinct contractual obligation as a separate ContractClause object."
Documents to extract from. Empty array means "all documents in the project".
Optional per-document page-range filter ({document_id: [start_page, end_page]}).
false
true
Filter applied to the source chunks/blocks before extraction runs.
standard, agentic Configuration for agentic extraction mode.
Bulk-import flag. When true, the create endpoint skips auto-version creation.
When true and a new version is created by this update, mark it as the default version.
Response
Updated. A new version may have been created — inspect versions[] to confirm.
Extracts structured data (instances of a Pydantic model) from chunks or blocks of documents.
Human-readable name.
"Contract clauses"
Short description shown in the UI.
"Extract obligations and effective dates from contracts."
"gpt-4o"
Display name of the object class (auto-derived from extractable_pydantic_class if omitted).
"ContractClause"
Python source of the Pydantic model used as the extraction schema.
"from pydantic import BaseModel\nfrom typing import Optional\n\nclass ContractClause(BaseModel):\n clause_type: str\n text: str\n effective_date: Optional[str] = None\n"
"Extract every distinct contractual obligation as a separate ContractClause object."
Documents to extract from. Empty array means "all documents in the project".
Optional per-document page-range filter ({document_id: [start_page, end_page]}).
false
true
Filter applied to the source chunks/blocks before extraction runs.
standard, agentic Configuration for agentic extraction mode.
ID of the warehouse Table where extracted objects are stored.
Immutable snapshot of an ObjectExtractor's version-bearing configuration.
New version rows are created automatically on PATCH when any of these
fields differs from the latest version.
Immutable snapshot of an ObjectExtractor's version-bearing configuration.
New version rows are created automatically on PATCH when any of these
fields differs from the latest version.