File storage access for reading and managing files
https://www.googleapis.com/drive/v3/files
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | optional | Search query (e.g., "mimeType='application/pdf'") |
| pageSize | integer | optional | Maximum files to return (1-1000) |
| pageToken | string | optional | Page token for pagination |
| orderBy | string | optional | Sort order (e.g., 'modifiedTime desc') |
| fields | string | optional | Fields to include in response |
/files/{fileId}
| Param | Type | Required | Description |
|---|---|---|---|
| fileId | string | required | File identifier |
| fields | string | optional | Fields to include in response |
/files
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | required | Folder name |
| parents | array | optional | Parent folder IDs |
| mimeType | string | optional | Must be 'application/vnd.google-apps.folder' |
/files/{fileId}
| Param | Type | Required | Description |
|---|---|---|---|
| fileId | string | required | File identifier |
| name | string | optional | New file name |
| description | string | optional | File description |
| addParents | string | optional | Comma-separated parent IDs to add |
| removeParents | string | optional | Comma-separated parent IDs to remove |
/files/{fileId}
| Param | Type | Required | Description |
|---|---|---|---|
| fileId | string | required | File identifier |
/files/{fileId}/permissions
| Param | Type | Required | Description |
|---|---|---|---|
| fileId | string | required | File identifier |
/files/{fileId}/permissions
| Param | Type | Required | Description |
|---|---|---|---|
| fileId | string | required | File identifier |
| type | string | required | Permission type (user, group, domain, anyone) |
| role | string | required | Permission role (owner, organizer, fileOrganizer, writer, commenter, reader) |
| emailAddress | string | optional | Email address for user/group permissions |