Media Files/FoldersVersion: v3
Upload File into Media Storage
POST/medias/upload-file
If hosted is set to true then fileUrl is required. Else file is required. If adding a file, maximum allowed is 25 MB. For video files, the maximum allowed size is 500 MB.
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Scope:
medias. writeAuth methods:
OAuthPrivate IntegrationToken type:
Sub-Account TokenRequest
Headers
Versionstringrequired
API Version
Available options
v3Body
filestring<binary>
hostedboolean
fileUrlstring
namestring
parentIdstring
Response
Successful response
fileIdstringrequired
ID of the uploaded file
Example:
file.pdfurlstringrequired
Google Cloud Storage URL of the uploaded file
Example:
https://storage.googleapis.com/bucket-name/path/to/file.pdf