Update metadata for a shared drive
PATCH {{baseUrl}}/drives/:driveId?key={{key}}&oauth_token={{oauthToken}}
Updates the metadata for a shared drive.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
useDomainAdminAccess | string | Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. | |
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
Request Body
{"backgroundImageFile"=>{"id"=>"<string>", "width"=>"<float>", "xCoordinate"=>"<float>", "yCoordinate"=>"<float>"}, "backgroundImageLink"=>"<string>", "capabilities"=>{"canAddChildren"=>"<boolean>", "canChangeCopyRequiresWriterPermissionRestriction"=>"<boolean>", "canChangeDomainUsersOnlyRestriction"=>"<boolean>", "canChangeDriveBackground"=>"<boolean>", "canChangeDriveMembersOnlyRestriction"=>"<boolean>", "canChangeSharingFoldersRequiresOrganizerPermissionRestriction"=>"<boolean>", "canComment"=>"<boolean>", "canCopy"=>"<boolean>", "canDeleteChildren"=>"<boolean>", "canDeleteDrive"=>"<boolean>", "canDownload"=>"<boolean>", "canEdit"=>"<boolean>", "canListChildren"=>"<boolean>", "canManageMembers"=>"<boolean>", "canReadRevisions"=>"<boolean>", "canRename"=>"<boolean>", "canRenameDrive"=>"<boolean>", "canResetDriveRestrictions"=>"<boolean>", "canShare"=>"<boolean>", "canTrashChildren"=>"<boolean>"}, "colorRgb"=>"<string>", "createdTime"=>"<dateTime>", "hidden"=>"<boolean>", "id"=>"<string>", "kind"=>"drive#drive", "name"=>"<string>", "orgUnitId"=>"<string>", "restrictions"=>{"adminManagedRestrictions"=>"<boolean>", "copyRequiresWriterPermission"=>"<boolean>", "domainUsersOnly"=>"<boolean>", "driveMembersOnly"=>"<boolean>", "sharingFoldersRequiresOrganizerPermission"=>"<boolean>"}, "themeId"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"backgroundImageFile":{"id":"\u003cstring\u003e","width":"\u003cfloat\u003e","xCoordinate":"\u003cfloat\u003e","yCoordinate":"\u003cfloat\u003e"},"backgroundImageLink":"\u003cstring\u003e","capabilities":{"canAddChildren":"\u003cboolean\u003e","canChangeCopyRequiresWriterPermissionRestriction":"\u003cboolean\u003e","canChangeDomainUsersOnlyRestriction":"\u003cboolean\u003e","canChangeDriveBackground":"\u003cboolean\u003e","canChangeDriveMembersOnlyRestriction":"\u003cboolean\u003e","canChangeSharingFoldersRequiresOrganizerPermissionRestriction":"\u003cboolean\u003e","canComment":"\u003cboolean\u003e","canCopy":"\u003cboolean\u003e","canDeleteChildren":"\u003cboolean\u003e","canDeleteDrive":"\u003cboolean\u003e","canDownload":"\u003cboolean\u003e","canEdit":"\u003cboolean\u003e","canListChildren":"\u003cboolean\u003e","canManageMembers":"\u003cboolean\u003e","canReadRevisions":"\u003cboolean\u003e","canRename":"\u003cboolean\u003e","canRenameDrive":"\u003cboolean\u003e","canResetDriveRestrictions":"\u003cboolean\u003e","canShare":"\u003cboolean\u003e","canTrashChildren":"\u003cboolean\u003e"},"colorRgb":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","hidden":"\u003cboolean\u003e","id":"\u003cstring\u003e","kind":"drive#drive","name":"\u003cstring\u003e","orgUnitId":"\u003cstring\u003e","restrictions":{"adminManagedRestrictions":"\u003cboolean\u003e","copyRequiresWriterPermission":"\u003cboolean\u003e","domainUsersOnly":"\u003cboolean\u003e","driveMembersOnly":"\u003cboolean\u003e","sharingFoldersRequiresOrganizerPermission":"\u003cboolean\u003e"},"themeId":"\u003cstring\u003e"}