Skip to main content
PUT
/
files
/
{file_id}
/
segments
/
{segment_id}
Update a file segment
curl --request PUT \
  --url https://api.cloudglue.dev/v1/files/{file_id}/segments/{segment_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": {}
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "start_time": 123,
  "end_time": 123,
  "thumbnail_url": "<string>",
  "metadata": {},
  "segmentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

file_id
string<uuid>
required

The ID of the file

segment_id
string<uuid>
required

The ID of the segment

Body

application/json

File segment update parameters

metadata
object

The user defined metadata for the segment. Nullable

Response

File segment updated successfully

id
string<uuid>
required

The ID of the segment

file_id
string<uuid>
required

The ID of the file

start_time
number
required

The start time of the segment in seconds

end_time
number
required

The end time of the segment in seconds

thumbnail_url
string
required

The URL of the thumbnail for the segment (if available)

metadata
object

The user defined metadata for the segment

segmentation_id
string<uuid>

The ID of the segmentation job it belongs to