POST
/
collections
/
{collection_id}
/
videos
curl --request POST \
  --url https://api.cloudglue.dev/v1/collections/{collection_id}/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_id": "<string>"
}'
{
  "collection_id": "<string>",
  "file_id": "<string>",
  "object": "collection_file",
  "added_at": 123,
  "status": "pending",
  "extract_status": "pending",
  "searchable_status": "pending",
  "file": {
    "id": "<string>",
    "status": "pending",
    "bytes": 123,
    "created_at": 123,
    "filename": "<string>",
    "uri": "<string>",
    "metadata": {},
    "video_info": {
      "duration_seconds": 123,
      "height": 123,
      "width": 123,
      "format": "<string>",
      "has_audio": true
    }
  }
}

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 video file to

Body

application/json

File association parameters

The body is of type object.

Response

200
application/json

Successful file addition

The response is of type object.