Skip to main content

Change the default upload extraction settings.

PATCH/api/v1/company/settings/default-upload-extractionsettings:write

Merges the fields the body names onto the stored setting; the others, the graph block included, keep their value. graph (format default_upload_graph) replaces the whole graph block after the Portal's own check, a refusal is 422 on /graph with its reason, and null removes the block. When the check cannot run the answer is unavailable or timeout and nothing changes. A change that starts or stops extraction also requires Enable Default Extraction or Disable Default Extraction, respectively.

Scopesettings:write (sensitive)
AsynchronousNo
MCP toolupdate_company_settings_default_upload_extraction
Portal permissionsedit_default_extraction_config

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonDefaultUploadExtractionPatchInput
application/merge-patch+jsonDefaultUploadExtractionPatchInput

Responses​

StatusDescriptionBody
200Success.application/json DefaultUploadExtraction or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

DefaultUploadExtraction​

FieldTypeRequiredDescription
enable_image_embeddingsboolean or nullRequired
enable_ocr_dispatchbooleanRequired
enabled_standard_fieldsarray of stringRequired
field_promptsobjectRequiredEach standard field's prompt text.
graphobject or nullRequiredformat default_upload_graph: the company's graph ontology settings for uploads (entity mentions, document references, register templates, per-field roles) as the Portal stores them; null when none.

DefaultUploadExtractionPatchInput​

FieldTypeRequiredDescription
enable_image_embeddingsboolean or nullOptional
enable_ocr_dispatchboolean or nullOptional
enabled_standard_fieldsarray of string or nullOptional
field_promptsobject or nullOptional
graphobject or nullOptional