Update the status of a review resource by its resource ID or session ID. This endpoint is used to approve, reject, or revoke reviews for session execution requests.
When a user interacts with a session, a review resource is automatically created containing the configured review groups, each initially set to PENDING status. All groups must be approved before the session can be executed.
The review status updates affect each review group based on the caller’s context. Once all groups are APPROVED, or if any group becomes REJECTED or REVOKED, the overall resource status updates accordingly.
Review groups contain individual review entries that must be completed by authorized users from specific groups. Each entry represents a required approval from a designated reviewer group.
When a review is created, each group entry is populated with the following structure:
{
"id": "aaa257be-5cc9-401d-ae7e-18ae806d366a",
"group": "banking",
"status": "PENDING",
"reviewed_by": null,
"review_date": null
}
After a review is completed, the entry includes the status, review timestamp, and reviewer information:
{
"id": "a546dfba-d917-4c2b-bc38-7852a7932573",
"group": "banking",
"status": "REJECTED",
"reviewed_by": {
"id": "17e4ff1a-104c-482c-be68-3c01bfc7028e",
"name": "John Doe",
"email": "[email protected]",
"slack_id": ""
},
"review_date": "2025-05-27T16:40:05.519754143Z"
}
These states are set directly by reviewers:
APPROVED - The resource has been approved by the reviewerREJECTED - The resource is rejected and cannot be updated furtherREVOKED - The resource is revoked and cannot be updated furtherThese states are managed automatically by the gateway:
PENDING - Initial state when the review is createdPROCESSING - Session is being executed; review cannot be updatedEXECUTED - Session completed successfully; review cannot be updatedUNKNOWN - Session executed but outcome is indeterminatePENDING or APPROVEDREJECTED immediately changes the overall resource status and prevents further updatesAPPROVED reviews can still be changed to REJECTED or REVOKED at any time by the resource owner or administratorsREJECTED or REVOKED the resource is considered as immutable and it cannot be updated againReviews in PROCESSING, EXECUTED, or UNKNOWN states are immutable and cannot be modified.
Resource identifier of the review
The request body resource
The reviewed status
APPROVED, REJECTED, REVOKED "APPROVED"
OK
The amount of time (nanoseconds) to allow access to the connection. It's valid only for jit type reviews
0
The time the resource was created
"2024-07-25T15:56:35.317601Z"
Resource identifier
"9F9745B4-C77B-4D52-84D3-E24F67E3623C"
Contains the groups that requires to approve this review
The time when this review was revoked
""
The id of session
"35DB0A2F-E5CE-4AD8-A308-55C3108956E5"
The status of the review
PENDING, APPROVED, REJECTED, REVOKED, PROCESSING, EXECUTED, UNKNOWN The type of the review
onetime, jit