accessproposals

POST /files/{fileId}/accessproposals/{proposalId}:resolve

Changed on

Approves or denies an access proposal. For more information, see Manage pending access proposals.

Request

  • Base URL
    https://www.googleapis.com/drive/v3
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/drive
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/drive
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/drive.file
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/drive.file

Path parameters

fileIdstring required

Required. The ID of the item the request is on.

proposalIdstring required

Required. The ID of the access proposal to resolve.

Request body

action'ACTION_UNSPECIFIED' | 'ACCEPT' | 'DENY'

Required. The action to take on the access proposal.

rolestring[]

Optional. The roles that the approver has allowed, if any. For more information, see Roles and permissions. Note: This field is required for the ACCEPT action.

sendNotificationboolean

Optional. Whether to send an email to the requester when the access proposal is denied or accepted.

viewstring

Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only published is supported.

Response

Successful response

Changes

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive.file was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive.file was removed from the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive.file was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive.file was removed from the endpoint's security scheme Oauth2c