curl --request PATCH \
--url https://api.example.com/v1/memory/ner-review/{item_id} \
--header 'Content-Type: application/json' \
--data '
{
"corrections": [
{
"entity_id": "<string>",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"status": "reviewed",
"reviewed_by": "<string>"
}
'import requests
url = "https://api.example.com/v1/memory/ner-review/{item_id}"
payload = {
"corrections": [
{
"entity_id": "<string>",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"status": "reviewed",
"reviewed_by": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
corrections: [
{
entity_id: '<string>',
remap_entity_id: '<string>',
remap_entity_name: '<string>',
reviewed_by: '<string>'
}
],
status: 'reviewed',
reviewed_by: '<string>'
})
};
fetch('https://api.example.com/v1/memory/ner-review/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/memory/ner-review/{item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'corrections' => [
[
'entity_id' => '<string>',
'remap_entity_id' => '<string>',
'remap_entity_name' => '<string>',
'reviewed_by' => '<string>'
]
],
'status' => 'reviewed',
'reviewed_by' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/memory/ner-review/{item_id}"
payload := strings.NewReader("{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/memory/ner-review/{item_id}")
.header("Content-Type", "application/json")
.body("{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/memory/ner-review/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"source_type": "slack",
"source_id": "<string>",
"source_text": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detected_entities": [
{
"entity_id": "<string>",
"entity_type": "<string>",
"entity_name": "<string>",
"confidence": 0.5,
"matched_text": "<string>",
"source": "dictionary"
}
],
"status": "pending",
"reviewed_by": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"corrections": [
{
"entity_id": "<string>",
"action": "confirm",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Apply corrections to a NER review item
Submit per-entity corrections (confirm/reject/remap) for a pending item. Confirmed and remapped entities trigger the alias feedback loop (T3.7): the matched text is recorded as a known alias for future NER dictionary passes. Remapping (T3.6) allows the reviewer to link the detected text to a different entity than what the NER pipeline suggested.
curl --request PATCH \
--url https://api.example.com/v1/memory/ner-review/{item_id} \
--header 'Content-Type: application/json' \
--data '
{
"corrections": [
{
"entity_id": "<string>",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"status": "reviewed",
"reviewed_by": "<string>"
}
'import requests
url = "https://api.example.com/v1/memory/ner-review/{item_id}"
payload = {
"corrections": [
{
"entity_id": "<string>",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"status": "reviewed",
"reviewed_by": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
corrections: [
{
entity_id: '<string>',
remap_entity_id: '<string>',
remap_entity_name: '<string>',
reviewed_by: '<string>'
}
],
status: 'reviewed',
reviewed_by: '<string>'
})
};
fetch('https://api.example.com/v1/memory/ner-review/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/memory/ner-review/{item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'corrections' => [
[
'entity_id' => '<string>',
'remap_entity_id' => '<string>',
'remap_entity_name' => '<string>',
'reviewed_by' => '<string>'
]
],
'status' => 'reviewed',
'reviewed_by' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/memory/ner-review/{item_id}"
payload := strings.NewReader("{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/memory/ner-review/{item_id}")
.header("Content-Type", "application/json")
.body("{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/memory/ner-review/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"corrections\": [\n {\n \"entity_id\": \"<string>\",\n \"remap_entity_id\": \"<string>\",\n \"remap_entity_name\": \"<string>\",\n \"reviewed_by\": \"<string>\"\n }\n ],\n \"status\": \"reviewed\",\n \"reviewed_by\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"source_type": "slack",
"source_id": "<string>",
"source_text": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detected_entities": [
{
"entity_id": "<string>",
"entity_type": "<string>",
"entity_name": "<string>",
"confidence": 0.5,
"matched_text": "<string>",
"source": "dictionary"
}
],
"status": "pending",
"reviewed_by": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"corrections": [
{
"entity_id": "<string>",
"action": "confirm",
"remap_entity_id": "<string>",
"remap_entity_name": "<string>",
"reviewed_by": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
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.
Unstructured-data source types that feed the review queue.
Structured sources (CRM, ERP) use deterministic entity resolution and do not produce review queue items.
slack, confluence, gdrive, meeting_transcript, email, notion Show child attributes
Show child attributes
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
pending, reviewed, skipped Show child attributes
Show child attributes