Skip to main content
PATCH
Apply corrections to a NER review item

Path Parameters

item_id
string<uuid>
required

Body

application/json

Body for PATCH /ner-review/{item_id}.

corrections
EntityCorrection · object[] | null
status
enum<string>
default:reviewed
Available options:
reviewed,
skipped
reviewed_by
string | null

Response

Successful Response

A single NER review queue entry (row in ner_review_queue).

Attributes: id: UUID primary key. source_type: Origin data source type. source_id: Identifier of the originating record (Slack message ID, Confluence page ID, etc.). source_text: Relevant text excerpt that triggered the NER detection. detected_entities: List of entities detected by the NER pipeline. status: Current review lifecycle status. reviewed_by: User who reviewed this item. reviewed_at: UTC timestamp of review completion. corrections: List of corrections applied by the reviewer. created_at: UTC timestamp of item creation.

source_type
enum<string>
required

Unstructured-data source types that feed the review queue.

Structured sources (CRM, ERP) use deterministic entity resolution and do not produce review queue items.

Available options:
slack,
confluence,
gdrive,
meeting_transcript,
email,
notion
source_id
string
required
source_text
string
required
id
string<uuid>
detected_entities
DetectedEntity · object[]
status
enum<string>
default:pending

Lifecycle status of a review queue item.

pending → awaiting human review reviewed → all corrections applied (confirm/reject/remap) skipped → reviewer chose to skip without corrections

Available options:
pending,
reviewed,
skipped
reviewed_by
string | null
reviewed_at
string<date-time> | null
corrections
EntityCorrection · object[] | null
created_at
string<date-time>