Skip to main content

Upload Files

Use this API to upload files (via url of the file) in the drive

Path Parameters
driveId string REQUIRED
Request Body REQUIRED
parentId string

The id of the parent folder where you want to upload the files. If you want to upload the files in the root directory, send null.

files object[]

List of files to be uploaded in the specified drive.

name string

Name of the file

description string

Description of the file

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 newly created files

Schema OPTIONAL
object