POST /files-api/v3/data/:parentFolderPath/:fileName
Query parameters:
providerId: 'googledrive' | 'gmail' | 'onedrive'
Request body:
content: file datacreatedAtTime?: string [use a format like this - 'Thu 22 Apr 2021 06:27:05 GMT+0530'; also note that this field may be ignored by some providers that cannot set the createdAtTime on a file]lastModifiedTime?: string [use a format like this - 'Thu 22 Apr 2021 06:27:05 GMT+0530'; also note that this field may be ignored by some providers that cannot set the lastModifiedTime on a file]- Fields as required by provider
Request headers:
X-Credentialsheader must have the client ID - API key pair encoded as follows:base64('<CLIENT ID>' + ':' + '<API KEY>')- Headers as required by provider
Format: JSON
code: 201 | 400 | 401 | 403 | 404 | 500 | 501error?: objectmessage: stringreason: string
content?: objectname: stringpath: stringkind: 'folder' | 'file'provider: 'googledrive' | 'gmail' | 'onedrive'mimeType: stringsize: numbercreatedAtTime: stringlastModifiedTime: stringcontentUri: string