Method: approvals.list

Lists the Approvals on a file.

HTTP request

GET https://www.googleapis.com/drive/v3/files/{fileId}/approvals

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
fileId

string

Required. The ID of the file the Approval is on.

Query parameters

Parameters
pageSize

integer

The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned.

pageToken

string

The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response.

Request body

The request body must be empty.

Response body

The response of an Approvals list request.

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "items": [
    {
      object (Approval)
    }
  ],
  "nextPageToken": string
}
Fields
kind

string

This is always drive#approvalList

items[]

object (Approval)

The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.

nextPageToken

string

The page token for the next page of Approvals. This will be 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.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.appdata
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

Some scopes are restricted and require a security assessment for your app to use them. For more information, see the Authorization guide.