Skip to main content

Replace Files

Use this API to replace files with a new version of the file

Path Parameters
driveId string REQUIRED
Request Body REQUIRED
files object[]

List of files to be uploaded in the specified drive.

itemId string

Id of the textual file whose contents you want to update.

url string

URL of the file to be uploaded. The file will be fetched from this URL and uploaded to the drive.

mimeType string

Mime type of the file

size int64

Size of the file in bytes

Responses
200

Returns the replaced files

Schema OPTIONAL
object