Skip to main content

Create or change a document's review schedule.

PATCH/api/v1/documents/{document_id}/review-schedulereviews:write

A merge patch over the stored schedule: members sent change, members sent null clear, members not sent keep their value. Creates the schedule when there is none. A save restarts a stopped schedule and detaches it from the review rule it came from, as the Portal does.

Scopereviews:write
AsynchronousNo
MCP toolupdate_document_review_schedule

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonReviewScheduleBodyInput
application/merge-patch+jsonReviewScheduleBodyInput

Responses​

StatusDescriptionBody
200Success.application/json ReviewSchedule or object
400invalid_version, malformed_jsonapplication/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
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

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

Schemas​

ReviewSchedule​

FieldTypeRequiredDescription
action_request_idstring or nullRequired
auto_applybooleanRequired
date_rollforward_basisstring or nullRequired
date_source_fieldstring or nullRequired
distribution_group_idstring or nullRequired
document_idstringRequired
due_daysinteger or nullRequired
frequency_daysinteger or nullRequired
frequency_hoursinteger or nullRequired
frequency_monthsinteger or nullRequired
lead_daysintegerRequired≥ -2147483648; ≤ 2147483647
next_due_datestring (date) or nullRequired
pausedbooleanRequired
quorum_modestring or nullRequired
review_programme_idstring or nullRequiredThe review programme the schedule runs.
review_schedule_idstringRequired
reviewer_user_idsarray of stringRequired
start_immediatelybooleanRequired
stop_conditionobject or nullRequired
stop_reasonstring or nullRequiredWhy the schedule stopped; null while it runs.
stopped_atstring (date-time) or nullRequiredWhen the schedule stopped (its stop condition was met); null while it runs. A stopped schedule opens no further rounds and is never overdue, whatever its next_due_date. Saving the schedule in the Portal restarts it.
time_of_daystring or nullRequired
workflow_template_idstring or nullRequired

ReviewScheduleBodyInput​

FieldTypeRequiredDescription
action_request_idstring or nullOptional
auto_applyboolean or nullOptional
date_rollforward_basisstring or nullOptional
date_source_fieldstring or nullOptional
distribution_group_idstring or nullOptional
document_idstring or nullOptional
due_daysinteger or nullOptional
frequency_daysinteger or nullOptional
frequency_hoursinteger or nullOptional
frequency_monthsinteger or nullOptional
lead_daysinteger or nullOptional
next_due_datestring (date) or nullOptional
pausedboolean or nullOptional
quorum_modestring or nullOptional
review_programme_idstring or nullOptional
review_schedule_idstring or nullOptional
reviewer_user_idsarray of string or nullOptional
start_immediatelyboolean or nullOptional
stop_conditionobject or nullOptional
stop_reasonstring or nullOptional
stopped_atstring (date-time) or nullOptional
time_of_daystring or nullOptional
workflow_template_idstring or nullOptional