Add document review decision
POST/documents/:documentId/reviews/:reviewId/decisions
Add a decision to a document review. When approvalGroups is set on the review, the caller must belong to at least one of those groups, in addition to satisfying the existing authorization requirements, before the decision is added. Decisions submitted to a review that is already COMPLETED return 409 Conflict without creating a decision, follow-up review, notification, or activity record.
Request
Path Parameters
Document Identifier
Review Identifier
Query Parameters
Site Identifier
Artifact Document Identifier
- application/json
Body
required
- PENDING: Review has been created and is waiting for one or more decisions.
- IN_PROGRESS: Review has been claimed or at least one decision has been submitted, but completion requirements are not yet satisfied.
- COMPLETED: Completion requirements are satisfied.
- CANCELLED: Review was cancelled before completion.
- SUPERSEDED: Review was replaced by another review, usually because the artifact/document changed.
Array [
]
decision
object
required
Possible values: [APPROVAL, RECOMMENDATION, ACKNOWLEDGMENT, COMMENT]
Review decision
Review decision comment
review
object
Review category
Status of Document Review:
Possible values: [PENDING, IN_PROGRESS, COMPLETED, CANCELLED, SUPERSEDED]
Optional approval groups used for additional credential verification when submitting a decision to POST /documents/{documentId}/reviews/{reviewId}/decisions. The caller must belong to at least one of the listed groups, in addition to satisfying the existing authorization requirements.
Number of decisions required to complete the review
Possible values: >= 1
notifications
object[]
Optional notifications to queue for delivery when the review is created. An empty list sends no notifications.
Type of document notification
Possible values: [EMAIL, IN_APP]
CC recipient email addresses
Possible values: >= 1
BCC recipient email addresses
Possible values: >= 1
Notification subject
Possible values: non-empty
Notification body
Possible values: non-empty
Review comments
Responses
- 201
- 409
201 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Decision Identifier
{
"decisionId": "string"
}
The review is already complete. No decision was created.
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"message": "string"
}
{
"message": "Review is already complete"
}