POST
/
api
/
v4
/
videos
Upload video file.
curl --request POST \
  --url https://apix.us.amity.co/api/v4/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'preferredFilename=<string>' \
  --form accessType=public
[
  {
    "fileId": "<string>",
    "fileUrl": "<string>",
    "type": "video",
    "accessType": "public",
    "altText": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "attributes": {
      "name": "big_buck_bunny_720p_2mb.mp4",
      "extension": "mp4",
      "size": 2107842,
      "mimeType": "video/mp4",
      "metadata": {}
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string
required

Body

multipart/form-data
file
file[]
required

An array containing a single file.

files
file[]
deprecated

An array of files. Must not be provided at the same time as file.

preferredFilename
string
Maximum length: 1024
accessType
enum<string>
default:public

File access type. network type requires authentication to download.

Available options:
public,
network

Response

File Video Upload Result

fileId
string

Root file key on cloud storage.

fileUrl
string

url to download the file

type
enum<string>

File type.

Available options:
image,
file,
video
Example:

"video"

accessType
enum<string>
default:public

File access type. network type requires authentication to download.

Available options:
public,
network
altText
string

Alternative text for the file.

createdAt
string<date-time>

The date/time when a file is uploaded.

updatedAt
string<date-time>

The date/time when a file is updated.

attributes
object