Realtime: update

Requires authorization

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 (read more about authentication and authorization).

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

Request body

Do not supply a request body with this method.

Response

If successful, this method returns an empty response body.

Send feedback about...

Drive REST API v2
Drive REST API v2