Docs

Submit Review

POST /drives/{eventId}/files/{fileId}/versions/{versionId}/reviews

POST/drives/{eventId}/files/{fileId}/versions/{versionId}/reviews

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Submits or updates a review on a specific file version. The caller must be a designated reviewer for the file (have isReviewer: true on their association). If the reviewer has already submitted a review on this version, the previous review is replaced.

Submitting a review automatically recalculates the file's status:

  • If any reviewer responded with "Changes Requested", the status becomes ChangesRequested.
  • If all reviewers responded with "Approved", the status becomes Approved.
  • Otherwise, the status is AwaitingApproval.

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.
fileIdGuidRequiredThe file ID.
versionIdGuidRequiredThe version ID to review.

Request Body

FieldTypeRequiredDescription
responsestringRequiredThe review response. Must be one of the values below.

Review Responses

ValueDescription
ApprovedThe reviewer approves this version.
Changes RequestedThe reviewer is requesting changes before approval.
No ResponseResets the reviewer's response (withdraws a previous approval/rejection).

Response

201 Created — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token, or caller is not a reviewer for this file.
NOT_FOUND404File or version not found.
BAD_REQUEST400Invalid response value.