Skip to content

Google: Drive approvals schemas

12 Google schemas with complete fields and constraints.

← Drive approvals operations · All schemas

Approves an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) This is used to update the Reviewer Response of the requesting user with a Response of `APPROVED` If this is the last required reviewer response, this also completes the approval and sets the approval Status to `APPROVED` — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest for approving an approval as a reviewer.
messagestringOptionalOptional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.

Cancels an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Updates the approval Status to `CANCELLED` This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest for cancelling an approval as an initiator.
messagestringOptionalOptional. A message to accompany the cancellation of the approval. This message is included in notifications for the action and in the approval activity log.

Comments on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) This sends a notification to both the initiator and the reviewers Additionally, a message is also added to the approval activity log — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest for commenting on an approval.
messagestringOptionalRequired. A message to comment on the approval. This message is included in notifications for the action and in the approval activity log.

Declines an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) This is used to update the Reviewer Response of the requesting user with a Response of `DECLINED` This also completes the approval and sets the approval Status to `DECLINED` — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest for declining an approval as a reviewer.
messagestringOptionalOptional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.

Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — request body — query

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
fieldsstringRequired within parentSelector specifying which fields to include in a partial response.
Minimum length: 1
prettyPrintbooleanOptionalReturns response with indentations and line breaks.
Default: true
quotaUserstringOptionalAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body

FieldTypePresenceDescription and constraints
$objectRootMetadata for an approval. An approval is a review or approve process for a Drive item.
approvalIdstringOptionalThe approval ID.
completeTimestringOptionalThe time the approval was completed.
Format: google-datetime
createTimestringOptionalThe time the approval was created.
Format: google-datetime
dueTimestringOptionalThe time that the approval is due.
Format: google-datetime
fileContentChangeBehaviorstringOptionalThe behavior of the approval when the file content changes.
Known values: FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED, RESET_APPROVAL, NO_APPROVAL_ACTION
initiatorModelOptionalExpand Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user
The user that requested the approval.
kindstringOptionalThis is always drive#approval.
modifyTimestringOptionalThe most recent time the approval was modified.
Format: google-datetime
reviewerResponsesarrayOptionalThe responses made on the approval by reviewers.
reviewerResponses[]ModelEach itemExpand Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body — reviewer Responses item
statusstringOptionalThe status of the approval at the time this resource was requested.
Known values: STATUS_UNSPECIFIED, IN_PROGRESS, APPROVED, CANCELLED, DECLINED
targetFileIdstringOptionalTarget file id of the approval.

Referenced models: Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body — reviewer Responses item, Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user

Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body — reviewer Responses item

FieldTypePresenceDescription and constraints
$objectRootA response on an approval made by a specific reviewer.
kindstringOptionalThis is always drive#reviewerResponse.
responsestringOptionalA reviewer’s response for the approval.
Known values: RESPONSE_UNSPECIFIED, NO_RESPONSE, APPROVED, DECLINED
reviewerModelOptionalExpand Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user
The user that's responsible for this response.

Referenced models: Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user

Lists the approvals on a file For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) By default, this method returns a minimal response that may not include the items array To retrieve approval details, you must explicitly specify the fields you want using the `fields` query parameter To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body

FieldTypePresenceDescription and constraints
$objectRootThe response of an approvals list request.
itemsarrayOptionalThe list of approvals. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.
items[]ModelEach itemExpand Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body
kindstringOptionalThis is always drive#approvalList
nextPageTokenstringOptionalThe page token for the next page of approvals. This is absent if the end of the approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.

Referenced models: Gets an approval by ID For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — response body

Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest for reassigning an approval. Reviewers can be added or replaced, but not removed.
addReviewersarrayOptionalOptional. The list of reviewers to add.
addReviewers[]ModelEach itemExpand Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body add Reviewers item
messagestringOptionalOptional. A message to send to the new reviewers. This message is included in notifications for the action and in the approval activity log.
replaceReviewersarrayOptionalOptional. The list of reviewer replacements.
replaceReviewers[]ModelEach itemExpand Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body replace Reviewers item

Referenced models: Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body add Reviewers item, Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body replace Reviewers item

Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body add Reviewers item

FieldTypePresenceDescription and constraints
$objectRootRepresentation of a reviewer addition.
addedReviewerEmailstringOptionalRequired. The email of the reviewer to add.

Reassigns the reviewers on an approval For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) Adds or replaces reviewers in the Reviewer Response of the approval This can be called by any user with the `writer` permission on the file while the approval Status is `IN PROGRESS` and the Response for the reviewer being reassigned is `NO RESPONSE` A user with the `reader` permission can only reassign an approval that's assigned to themselves Removing a reviewer isn't allowed — request body — body replace Reviewers item

FieldTypePresenceDescription and constraints
$objectRootRepresentation of a reviewer replacement.
addedReviewerEmailstringOptionalRequired. The email of the reviewer to add.
removedReviewerEmailstringOptionalRequired. The email of the reviewer to remove.

Starts an approval on a file For more information, see Manage approvals (https: developers google com workspace drive api guides approvals) — request body — body

FieldTypePresenceDescription and constraints
$objectRootAllows creating an approval on a file.
dueTimestringOptionalOptional. The time that the approval is due.
Format: google-datetime
fileContentChangeBehaviorstringOptionalOptional. The behavior of the approval when the file content changes.
One of: FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED, RESET_APPROVAL, NO_APPROVAL_ACTION
lockFilebooleanOptionalOptional. Whether to lock the file when starting the approval.
messagestringOptionalOptional. A message to send to reviewers when notifying them of the approval request.
reviewerEmailsarrayOptionalRequired. The emails of the users who are set to review the approval.
reviewerEmails[]stringEach item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.