Skip to main content
PATCH
Update a subtitle profile

Authorizations

X-API-Key
string
header
required

Your Phrase Platform API token in the X-API-Key header. A missing, invalid or expired token is answered with 401. 403 means the token is valid but the action is not allowed for it.

Path Parameters

id
string<uuid>
required

Subtitle profile ID.

Body

application/json

Fields of a subtitle profile to change. Send only what changes. Editing a default profile of Studio stores a personal copy of it for you, which then replaces the default in your list.

name
string

Profile name.

Required string length: 1 - 256
description
string

What the profile is for.

languages
string[] | null

Languages the profile is meant for; empty or null means every language.

active
boolean

Whether the profile can be applied to projects.

minDuration
number

Minimum duration of a subtitle in seconds.

Required range: x >= 0
maxDuration
number

Maximum duration of a subtitle in seconds.

Required range: x >= 0
maxLineCharacterCount
integer

Maximum number of characters on a line.

Required range: x >= 1
maxGapBetweenWords
number

Longest pause between two words that still stay in one subtitle, in seconds.

Required range: x >= 0
minGapFrames
integer

Minimum gap between two subtitles in frames.

Required range: x >= 0
subtitlePosition
enum<string>

Where subtitles are placed on the video.

Available options:
top,
bottom,
center,
right,
middle,
left
displaySpeakerNames
boolean

Whether the speaker name is shown in front of the text.

maxLinesPerScreen
integer

Maximum number of lines shown at the same time.

Required range: x >= 1
charactersPerSecond
number

Maximum reading speed in characters per second.

Required range: x >= 1
fontFamily
string

Font family: a name of 1-128 characters without commas, braces, backslashes or line breaks (such as Arial), or custom:<id> for a custom font (the fontFamily value of GET /v1/fonts) that you can use. A custom font that does not exist or is not yours is refused with 400. A custom font that was deleted later falls back to Arial in burned-in video.

Maximum string length: 128
fontSize
number

Font size.

Required range: x >= 1
fontWeight
enum<string>

Font weight.

Available options:
normal,
bold
fontStyle
enum<string>

Font style.

Available options:
normal,
italic
textAlign
enum<string>

Text alignment.

Available options:
left,
center,
right
textColor
string

Text color: #RRGGBB, or rgb()/rgba() with channels 0-255 and an alpha from 0 to 1 (for example rgba(0, 0, 0, 0.5)); backgroundColor and textColor may also be empty.

Maximum string length: 25
Pattern: ^(|#[0-9a-fA-F]{6}|rgba?\((25[0-5]|2[0-4]\d|1?\d?\d), ?(25[0-5]|2[0-4]\d|1?\d?\d), ?(25[0-5]|2[0-4]\d|1?\d?\d)(, ?(0|1|0?\.\d+|1\.0+))?\))$
backgroundType
enum<string>

How the text is separated from the video.

Available options:
none,
box,
outline,
wrap
backgroundColor
string

Background color: #RRGGBB, or rgb()/rgba() with channels 0-255 and an alpha from 0 to 1 (for example rgba(0, 0, 0, 0.5)); backgroundColor and textColor may also be empty.

Maximum string length: 25
Pattern: ^(|#[0-9a-fA-F]{6}|rgba?\((25[0-5]|2[0-4]\d|1?\d?\d), ?(25[0-5]|2[0-4]\d|1?\d?\d), ?(25[0-5]|2[0-4]\d|1?\d?\d)(, ?(0|1|0?\.\d+|1\.0+))?\))$
verticalPositioning
boolean

Whether subtitles are positioned vertically from the edge instead of by the placement setting.

delta
number

Vertical offset of the subtitles.

Required range: x >= 0
deltaX
number

Horizontal offset of the subtitles.

Required range: -50 <= x <= 50

Response

Subtitle profile updated

Rules and styling that decide how subtitles are cut and shown.

id
string<uuid>

Subtitle profile ID.

sourceProfileId
string<uuid> | null

ID of the profile this one was copied from.

name
string

Profile name.

description
string

What the profile is for.

languages
string[] | null

Languages the profile is meant for; empty or null means every language.

active
boolean

Whether the profile can be applied to projects.

default
boolean

True for items that Studio provides to every account. They cannot be edited.

shared
boolean

True for items that belong to another account of your organization; false for items you own and for Studio's defaults.

minDuration
number

Minimum duration of a subtitle in seconds.

maxDuration
number

Maximum duration of a subtitle in seconds.

maxLineCharacterCount
integer

Maximum number of characters on a line.

maxGapBetweenWords
number

Longest pause between two words that still stay in one subtitle, in seconds.

minGapFrames
integer

Minimum gap between two subtitles in frames.

subtitlePosition
enum<string>

Where subtitles are placed on the video.

Available options:
top,
bottom,
center,
right,
middle,
left
displaySpeakerNames
boolean

Whether the speaker name is shown in front of the text.

maxLinesPerScreen
integer

Maximum number of lines shown at the same time.

charactersPerSecond
number

Maximum reading speed in characters per second.

fontFamily
string

Font family: a name such as Arial, or custom:<id> for a custom font (the fontFamily value of GET /v1/fonts). A custom font that was deleted falls back to Arial in burned-in video.

fontSize
number

Font size.

fontWeight
string

Font weight.

fontStyle
string

Font style.

textAlign
string

Text alignment.

textColor
string

Text color as a CSS color.

backgroundType
enum<string>

How the text is separated from the video.

Available options:
none,
box,
outline,
wrap
backgroundColor
string

Background color as a CSS color.

verticalPositioning
boolean

Whether subtitles are positioned vertically from the edge instead of by the placement setting.

delta
number

Vertical offset of the subtitles.

deltaX
number

Horizontal offset of the subtitles.

layout
enum<string>

Video layout the profile is made for. Read only: the API does not change it.

Available options:
landscape,
portrait,
portrait_4_5
createdAt
string<date-time>

Creation time.

updatedAt
string<date-time>

Last update time.