Realtime: update

This API is deprecated and will be turned down in January 2019. Migrate to Cloud Firestore or another data store as soon as possible to avoid disruptions to your application.

Overwrites the Realtime API data model associated with this file with the provided JSON data model.

This method supports an /upload URI and accepts uploaded media with the following characteristics:

  • Maximum file size: 10MB
  • Accepted Media MIME types: */*

Request

HTTP request

PUT https://www.googleapis.com/upload/drive/v2/files/fileId/realtime

Parameters

Parameter name Value Description
Path parameters
fileId string The ID of the file that the Realtime API data model is associated with.
Required query parameters
uploadType string The type of upload request to the /upload URI. Acceptable values are:
  • media - Simple upload. Upload the media data.
  • resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests.
Optional query parameters
baseRevision string The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.

Authorization

This request requires authorization with at least one of the following scopes:

Scope
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file

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

Request body

Do not supply a request body with this method.

Response

If successful, this method returns an empty response body.

Надіслати відгук про…

Цю сторінку
Google Drive API
Google Drive API
Потрібна допомога? Відвідайте сторінку підтримки.