Skip to main content

Create Files

Use this API to create files (via contents 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 created in the specified drive.

name string

Name of the file

description string

Description of the file

fileContents string

Contents of the file to be created.

mimeType string

Mime type of the file

Responses
200

Returns the newly created files

Schema OPTIONAL
object