Review a report and optionally approve a typed overlay
POST /v1/reports/{report_id}/review
POST /v1/reports/{report_id}/review
Verified web sessions whose user ID is explicitly configured in FEEDBACK_REVIEWERS only; workspace owner/admin roles, API keys and external OAuth clients cannot approve corrections. Acceptance rechecks the current trusted record digest and identity, requires a typed condition patch, and appends immutable history. A changed record returns 409 and needs_revalidation. Rejection and requests for more information do not alter the source record. Review requests are idempotent.
Authorization
This operation requires a bearer credential. The description defines additional role, scope or first-party-session restrictions; an API key does not grant those permissions by itself.
Parameters
| Property | Type | Required | Details |
|---|---|---|---|
report_id (path) | string | yes |
Request body
| Property | Type | Required | Details |
|---|---|---|---|
decision | "accepted" ∣ "rejected" ∣ "needs_information" | yes | |
rationale | string | yes | |
idempotency_key | string | yes | |
patch | CorrectionPatch ∣ null | no |
Full schema: ReportReview
{
"properties": {
"decision": {
"type": "string",
"enum": [
"accepted",
"rejected",
"needs_information"
],
"title": "Decision"
},
"rationale": {
"type": "string",
"maxLength": 2000,
"minLength": 10,
"title": "Rationale"
},
"idempotency_key": {
"type": "string",
"maxLength": 128,
"minLength": 8,
"pattern": "^[A-Za-z0-9_.:-]+$",
"title": "Idempotency Key"
},
"patch": {
"anyOf": [
{
"$ref": "#/components/schemas/CorrectionPatch"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"type": "object",
"required": [
"decision",
"rationale",
"idempotency_key"
],
"title": "ReportReview"
}Responses
| HTTP | Details | Type |
|---|---|---|
| 200 | Successful Response | application/json: ObservationReport |
| 401 | Unauthorized | application/problem+json: ProblemDetails |
| 403 | Forbidden | application/problem+json: ProblemDetails |
| 404 | Not Found | application/problem+json: ProblemDetails |
| 409 | Conflict | application/problem+json: ProblemDetails |
| 413 | Request Entity Too Large | application/problem+json: ProblemDetails |
| 422 | Unprocessable Entity | application/problem+json: ProblemDetails |
| 429 | Too Many Requests | application/problem+json: ProblemDetails |
| 502 | Bad Gateway | application/problem+json: ProblemDetails |
| 503 | Service Unavailable | application/problem+json: ProblemDetails |
Response: ObservationReport
| Property | Type | Required | Details |
|---|---|---|---|
id | string | yes | |
observation_id | string | yes | |
category | "field_conflict" ∣ "stage_misattribution" ∣ "missing_source" ∣ "structure_mismatch" ∣ "other" | yes | |
summary | string | yes | |
evidence_quote | string ∣ null | no | |
proposed_patch | CorrectionPatch ∣ null | no | |
state | "pending" ∣ "accepted" ∣ "rejected" ∣ "needs_information" ∣ "needs_revalidation" | yes | |
created_at | string | yes | |
updated_at | string | yes | |
reference | ReportReference | yes | |
review | ReviewedDecision ∣ null | no | |
correction | CorrectionVersion ∣ null | no |
Full schema
{
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"observation_id": {
"type": "string",
"title": "Observation Id"
},
"category": {
"type": "string",
"enum": [
"field_conflict",
"stage_misattribution",
"missing_source",
"structure_mismatch",
"other"
],
"title": "Category"
},
"summary": {
"type": "string",
"title": "Summary"
},
"evidence_quote": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Evidence Quote"
},
"proposed_patch": {
"anyOf": [
{
"$ref": "#/components/schemas/CorrectionPatch"
},
{
"type": "null"
}
]
},
"state": {
"type": "string",
"enum": [
"pending",
"accepted",
"rejected",
"needs_information",
"needs_revalidation"
],
"title": "State"
},
"created_at": {
"type": "string",
"title": "Created At"
},
"updated_at": {
"type": "string",
"title": "Updated At"
},
"reference": {
"$ref": "#/components/schemas/ReportReference"
},
"review": {
"anyOf": [
{
"$ref": "#/components/schemas/ReviewedDecision"
},
{
"type": "null"
}
]
},
"correction": {
"anyOf": [
{
"$ref": "#/components/schemas/CorrectionVersion"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true,
"type": "object",
"required": [
"id",
"observation_id",
"category",
"summary",
"state",
"created_at",
"updated_at",
"reference"
],
"title": "ObservationReport"
}This page is generated from OpenAPI; examples are schemas, not a fabricated successful response.