Skip to main content

List the review rounds of a document.

GET/api/v1/documents/{document_id}/review-roundsreviews:read

Every round the document has had, newest first: the open one (is_open) and the closed ones, each with its participants, decisions, trigger, reason, quorum and the file version it pinned. is_open filters to the open round or to the closed ones. Needs read access to the document.

Scopereviews:read
AsynchronousNo
MCP toollist_document_review_rounds
Portal permissionsview_review_register
Pagingkeyset
Default order-cycle_number, review_round_id
Sort fieldsreview_round_id, cycle_number

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
is_openqueryboolean or nullOptionaltrue keeps the open round, false the closed ones.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of ReviewRoundRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ReviewParticipant​

FieldTypeRequiredDescription
action_request_idstring or nullRequired
decided_atstring or nullRequired
decisionstring or nullRequiredNull until the person has decided.
due_datestring or nullRequiredThe due date of the person's action request.
is_requiredbooleanRequired
is_supersededbooleanRequiredTrue when another participant took this person's place (a delegation or escalation).
reviewerUserRefRequired
rolestringRequiredreviewer, approver, consulted or informed.
sourcestringRequiredHow the person became a participant: distribution_group, direct, delegated, escalated or owner.

ReviewPinnedVersion​

FieldTypeRequiredDescription
file_hashstring or nullRequired
revision_numberstring or nullRequired
version_idstring or nullRequiredNull when the round pinned no file.

ReviewRound​

FieldTypeRequiredDescription
closed_atstring or nullRequired
completion_workflow_idstring or nullRequiredThe workflow the round's closing started from the programme's completion template.
cycle_numberintegerRequired≥ -2147483648; ≤ 2147483647
document_idstringRequired
due_datestring or nullRequired
has_version_changedbooleanRequiredTrue when the document's file no longer matches the pinned one.
is_openbooleanRequired
opened_atstring or nullRequired
opened_byUserRef or nullRequiredNull when the round opened without a user (a schedule).
outcomestring or nullRequiredapproved, changes_requested, rejected, cancelled, … ; null while open.
participantsarray of ReviewParticipantRequiredWho was asked, in the order they were added, with their decision.
pinned_versionReviewPinnedVersionRequiredThe file version the round was opened against: the evidence of what the reviewers saw.
quorum_modestringRequiredany, all_respond, all_agree or threshold.
reasonstring or nullRequiredThe wording shown to the reviewers.
review_round_idstringRequired
review_schedule_idstring or nullRequiredThe schedule the round opened under; null for a round started outside one.
risk_levelstring or nullRequired
source_date_anchorstring or nullRequiredThe date field value the round was scheduled from, copied when it opened.
source_date_fieldstring or nullRequired
source_date_rollforward_basisstring or nullRequired
superseded_by_review_round_idstring or nullRequired
triggerstringRequiredWhat opened the round: scheduled, manual, confirm, rereview or workflow.
workflow_idstring or nullRequiredThe workflow the round runs in, when it has one.
workflow_item_idstring or nullRequired

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired