curl --request POST \
--url https://apix.us.amity.co/api/v4/clips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 'files=<string>' \
--form 'preferredFilename=<string>' \
--form accessType=public \
--form file.items='@example-file' \
--form files.items='@example-file'[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "clip",
"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": {}
}
}
]Upload a clip to cloud storage
Video size limit: 2,147,483,648 byte (2GB)
Video duration limit: 15 minutes
curl --request POST \
--url https://apix.us.amity.co/api/v4/clips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 'files=<string>' \
--form 'preferredFilename=<string>' \
--form accessType=public \
--form file.items='@example-file' \
--form files.items='@example-file'[
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "clip",
"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": {}
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
An array containing a single file.
An array of files. Must not be provided at the same time as file.
1024File access type. network type requires authentication to download.
public, network Clip Video Upload Result
Root file key on cloud storage.
url to download the file
File type.
image, file, video, clip "clip"
File access type. network type requires authentication to download.
public, network Alternative text for the file.
The date/time when a file is uploaded.
The date/time when a file is updated.
Show child attributes