Skip to main content
Version: 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.

Request

Version stringrequired

API Version

Available optionsv3
multipart/form-data

Bodyrequired

    filestring<binary>
    hostedboolean
    fileUrlstring
    namestring
    parentIdstring
application/json

Successful response

Schema
    fileIdstringrequired

    ID of the uploaded file

    urlstringrequired

    Google Cloud Storage URL of the uploaded file