Skip to main content
POST
Add a media file to a collection

Authorizations

Authorization
string
header
required

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

Path Parameters

collection_id
string
required

The ID of the collection to add the media file to

Body

application/json

File association parameters

file_id
string
required

The ID of the file to add to the collection

segmentation_id
string<uuid>

Segmentation job id to use. If not provided will use default to uniform 20s segmentation. Cannot be provided together with segmentation_config.

segmentation_config
object

Configuration for video segmentation. Cannot be provided together with segmentation_id.

thumbnails_config
object
metadata
object

User metadata stored on the file (merged into the file's metadata and included in the indexed metadata doc). Only supported when adding to metadata collections; other collection types take metadata via the Files endpoints.

Response

Successful file addition

collection_id
string
required

ID of the collection

file_id
string
required

ID of the file

object
enum<string>
required

Object type, always 'collection_file'

Available options:
collection_file
added_at
integer
required

Unix timestamp in milliseconds when the file was added to the collection

status
enum<string>
required

Overall processing status of the file in this collection

Available options:
pending,
processing,
completed,
failed,
not_applicable
file
object

The file object

segmentation
object

Segmentation information for this file in the collection. Only present when the file has been segmented.