{ "opencollection": "1.0.0", "info": { "name": "Google Books About Permissions API", "version": "1.0.0" }, "items": [ { "info": { "name": "Permissions", "type": "folder" }, "items": [ { "info": { "name": "Google Get Files Fileid Permissions", "type": "http" }, "http": { "method": "GET", "url": "https://www.googleapis.com/books/v1/files/:fileId/permissions", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "fileId", "value": "", "type": "path", "description": "The ID of the file or shared drive." }, { "name": "includePermissionsForView", "value": "", "type": "query", "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported." }, { "name": "pageSize", "value": "", "type": "query", "description": "The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned." }, { "name": "pageToken", "value": "", "type": "query", "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response." }, { "name": "supportsAllDrives", "value": "", "type": "query", "description": "Whether the requesting application supports both My Drives and shared drives." }, { "name": "supportsTeamDrives", "value": "", "type": "query", "description": "Deprecated: Use `supportsAllDrives` instead." }, { "name": "useDomainAdminAccess", "value": "", "type": "query", "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs." }, { "name": "$.xgafv", "value": "", "type": "query", "description": "V1 error format." }, { "name": "access_token", "value": "", "type": "query", "description": "OAuth access token." }, { "name": "alt", "value": "", "type": "query", "description": "Data format for response." }, { "name": "callback", "value": "", "type": "query", "description": "JSONP" }, { "name": "fields", "value": "", "type": "query", "description": "Selector specifying which fields to include in a partial response." }, { "name": "key", "value": "", "type": "query", "description": "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." }, { "name": "oauth_token", "value": "", "type": "query", "description": "OAuth 2.0 token for the current user." }, { "name": "prettyPrint", "value": "", "type": "query", "description": "Returns response with indentations and line breaks." }, { "name": "quotaUser", "value": "", "type": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, { "name": "upload_protocol", "value": "", "type": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, { "name": "uploadType", "value": "", "type": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." } ] }, "docs": "Lists a file's or shared drive's permissions." }, { "info": { "name": "Google Post Files Fileid Permissions", "type": "http" }, "http": { "method": "POST", "url": "https://www.googleapis.com/books/v1/files/:fileId/permissions", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "fileId", "value": "", "type": "path", "description": "The ID of the file or shared drive." }, { "name": "emailMessage", "value": "", "type": "query", "description": "A plain text custom message to include in the notification email." }, { "name": "enforceSingleParent", "value": "", "type": "query", "description": "Deprecated: See `moveToNewOwnersRoot` for details." }, { "name": "moveToNewOwnersRoot", "value": "", "type": "query", "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents are not changed." }, { "name": "sendNotificationEmail", "value": "", "type": "query", "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers." }, { "name": "supportsAllDrives", "value": "", "type": "query", "description": "Whether the requesting application supports both My Drives and shared drives." }, { "name": "supportsTeamDrives", "value": "", "type": "query", "description": "Deprecated: Use `supportsAllDrives` instead." }, { "name": "transferOwnership", "value": "", "type": "query", "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect." }, { "name": "useDomainAdminAccess", "value": "", "type": "query", "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs." }, { "name": "$.xgafv", "value": "", "type": "query", "description": "V1 error format." }, { "name": "access_token", "value": "", "type": "query", "description": "OAuth access token." }, { "name": "alt", "value": "", "type": "query", "description": "Data format for response." }, { "name": "callback", "value": "", "type": "query", "description": "JSONP" }, { "name": "fields", "value": "", "type": "query", "description": "Selector specifying which fields to include in a partial response." }, { "name": "key", "value": "", "type": "query", "description": "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." }, { "name": "oauth_token", "value": "", "type": "query", "description": "OAuth 2.0 token for the current user." }, { "name": "prettyPrint", "value": "", "type": "query", "description": "Returns response with indentations and line breaks." }, { "name": "quotaUser", "value": "", "type": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, { "name": "upload_protocol", "value": "", "type": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, { "name": "uploadType", "value": "", "type": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied." }, { "info": { "name": "Google Get Files Fileid Permissions Permissionid", "type": "http" }, "http": { "method": "GET", "url": "https://www.googleapis.com/books/v1/files/:fileId/permissions/:permissionId", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "fileId", "value": "", "type": "path", "description": "The ID of the file." }, { "name": "permissionId", "value": "", "type": "path", "description": "The ID of the permission." }, { "name": "supportsAllDrives", "value": "", "type": "query", "description": "Whether the requesting application supports both My Drives and shared drives." }, { "name": "supportsTeamDrives", "value": "", "type": "query", "description": "Deprecated: Use `supportsAllDrives` instead." }, { "name": "useDomainAdminAccess", "value": "", "type": "query", "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs." }, { "name": "$.xgafv", "value": "", "type": "query", "description": "V1 error format." }, { "name": "access_token", "value": "", "type": "query", "description": "OAuth access token." }, { "name": "alt", "value": "", "type": "query", "description": "Data format for response." }, { "name": "callback", "value": "", "type": "query", "description": "JSONP" }, { "name": "fields", "value": "", "type": "query", "description": "Selector specifying which fields to include in a partial response." }, { "name": "key", "value": "", "type": "query", "description": "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." }, { "name": "oauth_token", "value": "", "type": "query", "description": "OAuth 2.0 token for the current user." }, { "name": "prettyPrint", "value": "", "type": "query", "description": "Returns response with indentations and line breaks." }, { "name": "quotaUser", "value": "", "type": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, { "name": "upload_protocol", "value": "", "type": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, { "name": "uploadType", "value": "", "type": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." } ] }, "docs": "Gets a permission by ID." }, { "info": { "name": "Google Patch Files Fileid Permissions Permissionid", "type": "http" }, "http": { "method": "PATCH", "url": "https://www.googleapis.com/books/v1/files/:fileId/permissions/:permissionId", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "fileId", "value": "", "type": "path", "description": "The ID of the file or shared drive." }, { "name": "permissionId", "value": "", "type": "path", "description": "The ID of the permission." }, { "name": "removeExpiration", "value": "", "type": "query", "description": "Whether to remove the expiration date." }, { "name": "supportsAllDrives", "value": "", "type": "query", "description": "Whether the requesting application supports both My Drives and shared drives." }, { "name": "supportsTeamDrives", "value": "", "type": "query", "description": "Deprecated: Use `supportsAllDrives` instead." }, { "name": "transferOwnership", "value": "", "type": "query", "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect." }, { "name": "useDomainAdminAccess", "value": "", "type": "query", "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs." }, { "name": "$.xgafv", "value": "", "type": "query", "description": "V1 error format." }, { "name": "access_token", "value": "", "type": "query", "description": "OAuth access token." }, { "name": "alt", "value": "", "type": "query", "description": "Data format for response." }, { "name": "callback", "value": "", "type": "query", "description": "JSONP" }, { "name": "fields", "value": "", "type": "query", "description": "Selector specifying which fields to include in a partial response." }, { "name": "key", "value": "", "type": "query", "description": "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." }, { "name": "oauth_token", "value": "", "type": "query", "description": "OAuth 2.0 token for the current user." }, { "name": "prettyPrint", "value": "", "type": "query", "description": "Returns response with indentations and line breaks." }, { "name": "quotaUser", "value": "", "type": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, { "name": "upload_protocol", "value": "", "type": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, { "name": "uploadType", "value": "", "type": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied." }, { "info": { "name": "Google Delete Files Fileid Permissions Permissionid", "type": "http" }, "http": { "method": "DELETE", "url": "https://www.googleapis.com/books/v1/files/:fileId/permissions/:permissionId", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "fileId", "value": "", "type": "path", "description": "The ID of the file or shared drive." }, { "name": "permissionId", "value": "", "type": "path", "description": "The ID of the permission." }, { "name": "supportsAllDrives", "value": "", "type": "query", "description": "Whether the requesting application supports both My Drives and shared drives." }, { "name": "supportsTeamDrives", "value": "", "type": "query", "description": "Deprecated: Use `supportsAllDrives` instead." }, { "name": "useDomainAdminAccess", "value": "", "type": "query", "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs." }, { "name": "$.xgafv", "value": "", "type": "query", "description": "V1 error format." }, { "name": "access_token", "value": "", "type": "query", "description": "OAuth access token." }, { "name": "alt", "value": "", "type": "query", "description": "Data format for response." }, { "name": "callback", "value": "", "type": "query", "description": "JSONP" }, { "name": "fields", "value": "", "type": "query", "description": "Selector specifying which fields to include in a partial response." }, { "name": "key", "value": "", "type": "query", "description": "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." }, { "name": "oauth_token", "value": "", "type": "query", "description": "OAuth 2.0 token for the current user." }, { "name": "prettyPrint", "value": "", "type": "query", "description": "Returns response with indentations and line breaks." }, { "name": "quotaUser", "value": "", "type": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, { "name": "upload_protocol", "value": "", "type": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, { "name": "uploadType", "value": "", "type": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." } ] }, "docs": "Deletes a permission. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied." } ] } ], "bundled": true }