Skip to content

Google: Drive accessproposals schemas

4 Google schemas with complete fields and constraints.

← Drive accessproposals operations · All schemas

Approves or denies an access proposal For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest message for resolving an AccessProposal on a file.
actionstringOptionalRequired. The action to take on the access proposal.
One of: ACTION_UNSPECIFIED, ACCEPT, DENY
rolearrayOptionalOptional. The roles that the approver has allowed, if any. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). Note: This field is required for the `ACCEPT` action.
role[]stringEach item
sendNotificationbooleanOptionalOptional. Whether to send an email to the requester when the access proposal is denied or accepted.
viewstringOptionalOptional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported.

List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). Note: Only approvers are able to list access proposals on a file If the user isn't an approver, a 403 error is returned — response body

FieldTypePresenceDescription and constraints
$objectRootThe response to an access proposal list request.
accessProposalsarrayOptionalThe list of access proposals. This field is only populated in Drive API v3.
accessProposals[]ModelEach itemExpand Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body
nextPageTokenstringOptionalThe continuation token for the next page of results. This will be absent if the end of the results 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: Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body

Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body

FieldTypePresenceDescription and constraints
$objectRootManage outstanding access proposals on a file.
createTimestringOptionalThe creation time.
Format: google-datetime
fileIdstringOptionalThe file ID that the proposal for access is on.
proposalIdstringOptionalThe ID of the access proposal.
recipientEmailAddressstringOptionalThe email address of the user that will receive permissions, if accepted.
requestMessagestringOptionalThe message that the requester added to the proposal.
requesterEmailAddressstringOptionalThe email address of the requesting user.
rolesAndViewsarrayOptionalA wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
rolesAndViews[]ModelEach itemExpand Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body — roles And Views item

Referenced models: Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body — roles And Views item

Retrieves an access proposal by ID For more information, see Manage pending access proposals (https: developers google com workspace drive api guides pending-access) — response body — roles And Views item

FieldTypePresenceDescription and constraints
$objectRootA wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
rolestringOptionalThe role that was proposed by the requester. The supported values are: * `writer` * `commenter` * `reader`
viewstringOptionalIndicates the view for this access proposal. Only populated for proposals that belong to a view. Only `published` is supported.

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.