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 file=@example-file \
  --form files=@example-file \
  --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

Response

200
application/json

File Video Upload Result

The response is of type object[].