Endpoint
Authentication
Requiresextractions:write scope.
Path Parameters
Request Body
The body is optional, unless the project of the document requires a reason.
An organization admin can make the reason mandatory for a project (Require a rejection reason in the project settings). For a document in such a project, a request without a reason returns
422.
Response
Behavior
- The first rejection is kept. A repeated request returns
200and does not changerejected_at,rejected_byorrejection_reason. - Rejection changes only the rejection fields.
status,needs_review,is_reviewed,resultsandreviewed_resultskeep their values. - A rejected document stays in
GET /pending-reviewsuntil it is reviewed. PUT /review/{document_id}does not check the rejection. A document can be both rejected and reviewed.