Skip to main content
PATCH
Confirm crew enrichment suggestions and push to DataHub

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

document_id
string<uuid>
required

Body

application/json

The user-confirmed enrichment suggestions to apply.

summary
string | null

Confirmed summary text for the document. Leave as None to keep the current summary.

accepted_tags
string[] | null

Tag names the user kept that already exist in DataHub.

new_tags
string[] | null

Tag names the user kept that DataHub doesn't have yet. The service creates them before attaching.

accepted_glossary_terms
string[] | null

Glossary term names the user kept that already exist in DataHub.

new_glossary_terms
string[] | null

Glossary term names the user kept that DataHub doesn't have yet. The service creates them before attaching.

domain
string | null

Chosen domain name. Set to None to leave the document unassigned.

domain_is_new
boolean
default:false

Set to true if the domain doesn't exist in DataHub yet. The service records the intent but waits for an administrator to create the domain before attaching.

Response

Successful Response

id
string<uuid>
required
filename
string
required
owner
string
required
mime_type
string
required
size_bytes
integer
required
page_count
integer | null
required
chunk_count
integer | null
required
subtype
string | null
required
status
enum<string>
required

Lifecycle status of an ingested document.

Available options:
uploading,
extracting,
ocr_required,
indexed,
failed
enrichment_status
enum<string>
required

Crew-driven enrichment lifecycle.

Available options:
pending,
running,
awaiting_review,
confirmed,
failed
datahub_urn
string | null
required
extraction_warning
string | null
required
suggested_summary
string | null
required
error
string | null
required
s3_key
string | null
required
suggested_tags
SuggestionItem · object[]
suggested_glossary_terms
SuggestionItem · object[]
suggested_domain
SuggestionItem · object | null

A flagged enrichment suggestion for a tag, glossary term, or domain.