Create a review rule.
POST/api/v1/review-rulesreviews:write
A default schedule for one document type, folder or record. Documents of the scope take it when it applies.
| Scope | reviews:write |
| Asynchronous | No |
| MCP tool | create_review_rule |
| Portal permissions | create_default_review_schedules |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | ReviewRuleCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json ReviewRule or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ReviewRule
| Field | Type | Required | Description |
|---|---|---|---|
action_request_id | string or null | Required | |
auto_apply | boolean | Required | |
date_rollforward_basis | string or null | Required | |
date_source_field | string or null | Required | |
distribution_group_id | string or null | Required | |
document_type_id | string or null | Required | |
due_days | integer or null | Required | |
folder_id | string or null | Required | |
frequency_days | integer or null | Required | |
frequency_hours | integer or null | Required | |
frequency_months | integer or null | Required | |
is_active | boolean | Required | |
lead_days | integer | Required | ≥ -2147483648; ≤ 2147483647 |
next_due_date | string (date) or null | Required | |
paused | boolean | Required | |
quorum_mode | string or null | Required | |
record_template_id | string or null | Required | |
review_programme_id | string or null | Required | The review programme the schedule runs. |
review_rule_id | string | Required | |
reviewer_user_ids | array of string | Required | |
start_immediately | boolean | Required | |
stop_condition | object or null | Required | |
time_of_day | string or null | Required | |
workflow_template_id | string or null | Required |
ReviewRuleCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
document_type_id | string or null | Optional | |
folder_id | string or null | Optional | |
record_template_id | string or null | Optional | |
schedule | ReviewScheduleBodyInput | Optional |
ReviewScheduleBodyInput
| Field | Type | Required | Description |
|---|---|---|---|
action_request_id | string or null | Optional | |
auto_apply | boolean or null | Optional | |
date_rollforward_basis | string or null | Optional | |
date_source_field | string or null | Optional | |
distribution_group_id | string or null | Optional | |
document_id | string or null | Optional | |
due_days | integer or null | Optional | |
frequency_days | integer or null | Optional | |
frequency_hours | integer or null | Optional | |
frequency_months | integer or null | Optional | |
lead_days | integer or null | Optional | |
next_due_date | string (date) or null | Optional | |
paused | boolean or null | Optional | |
quorum_mode | string or null | Optional | |
review_programme_id | string or null | Optional | |
review_schedule_id | string or null | Optional | |
reviewer_user_ids | array of string or null | Optional | |
start_immediately | boolean or null | Optional | |
stop_condition | object or null | Optional | |
stop_reason | string or null | Optional | |
stopped_at | string (date-time) or null | Optional | |
time_of_day | string or null | Optional | |
workflow_template_id | string or null | Optional |