drive.drives.update
Update a shared drive's metadata—such as name, color, theme, or restrictions—by submitting a JSON Drive object through the Drive API.
Instructions
Updates the metadata for a shared drive. For more information, see Manage shared drives [HTTP PATCH] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON Drive object accepting backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, hidden, id, kind and 4 more fields; pass it via params or whole via body_file Siblings over the same resource: create, delete, get, hide, list, unhide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| driveId | Yes | [URL path segment] The ID of the shared drive. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON Drive object. | |
| request_body | No | Request body of type Drive: pass it via `params` (merged into the built body) or whole via `body_file`. | |
| useDomainAdminAccess | No | [query parameter] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the s | false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| kind | No | ||
| name | No | ||
| hidden | No | ||
| themeId | No | ||
| colorRgb | No | ||
| orgUnitId | No | ||
| createdTime | No | ||
| capabilities | No | ||
| restrictions | No | ||
| backgroundImageFile | No | ||
| backgroundImageLink | No |