v1

latestOpenAPI 3.1.02026-07-2416666272.6 KB
Custom Fields

Create custom field

Creates a custom field on a video (key-value metadata). Max 50 fields per video; keys 1-200 chars, values 1-500 chars; key unique per video. Returns the new field's id only.

post/videos/{video_id}

Path parameters

video_idstring uuid required

Unique identifier for the video

Query parameters

custom_fields'true' required

Set to 'true' to create a custom field

Request body

keystring required

Custom field key/name. Must be unique per video.

valuestring required

Custom field value. Required and cannot be empty.

Example request

{
  "key": "category",
  "value": "Educational"
}

Response

Custom field created successfully

idstring uuid

Unique identifier for the custom field

video_idstring uuid

ID of the video this custom field belongs to

keystring

Custom field key/name

valuestring nullable

Custom field value

created_atstring date-time

Custom field creation timestamp

updated_atstring date-time

Last update timestamp

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "video_id": "987fcdeb-51a2-4e59-a125-23379b3692b5",
  "key": "category",
  "value": "Educational",
  "created_at": "2023-01-15T10:30:00Z",
  "updated_at": "2023-01-15T10:30:00Z"
}