Save a subtitle preset
Saves a subtitle look as a personal preset, like the editor's "Save as preset". Pass videoId to snapshot that video's current subtitles (style, font, weight, size, position, grouping and lines per block), captionStyle to build one from scratch on the style's defaults, or both — explicit caption fields override the video's. Omit name for the editor's default (the matching built-in's name, numbered). The preset then appears in GET /v1/subtitle-presets and in the editor's Subtitles panel, and can be applied to other videos with PUT /v1/videos/{id}/subtitle-preset.
Request body
Example request
{
"captionFontFamily": "Inter",
"captionFontSize": 64,
"captionFontWeight": 500,
"captionLinesPerBlock": 1,
"captionStyle": {
"activeWordTextColor": "#5E51F8FF",
"backgroundColor": "#5E51F8FF",
"highlightColor": "#5E51F8FF",
"outlineColor": "#5E51F8FF",
"shadowColor": "#5E51F8FF",
"textColor": "#5E51F8FF"
},
"name": "Brand captions",
"videoId": "vid_abc123"
}Response
Preset saved
Example response
{
"preset": {
"captionStyle": {
"activeWordTextColor": "#5E51F8FF",
"backgroundColor": "#5E51F8FF",
"highlightColor": "#5E51F8FF",
"outlineColor": "#5E51F8FF",
"shadowColor": "#5E51F8FF",
"textColor": "#5E51F8FF"
},
"presetId": "default:spotlight"
}
}Changes
Changed in 2 of the 18 revisions of this API.91
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
added the new
edit_conflictenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ○
endpoint added
endpoint-added
- ○
Of the 18 revisions, 1 has no diff computed.