curl --request PATCH \
--url https://api.studio.us.phrase.com/v1/subtitle-profiles/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"maxLinesPerScreen": 3
}
'import requests
url = "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}"
payload = { "maxLinesPerScreen": 3 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({maxLinesPerScreen: 3})
};
fetch('https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'maxLinesPerScreen' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}"
payload := strings.NewReader("{\n \"maxLinesPerScreen\": 3\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"maxLinesPerScreen\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxLinesPerScreen\": 3\n}"
response = http.request(request)
puts response.read_body{
"id": "6f1d2c3e-8b4a-4c5d-9e7f-123456789abc",
"name": "Two lines",
"description": "For social video",
"languages": [
"es-es"
],
"active": true,
"default": false,
"shared": false,
"minDuration": 0.7,
"maxDuration": 7,
"maxLineCharacterCount": 42,
"maxGapBetweenWords": 3,
"minGapFrames": 2,
"subtitlePosition": "bottom",
"displaySpeakerNames": false,
"maxLinesPerScreen": 2,
"charactersPerSecond": 20,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Update a subtitle profile
Change fields of a subtitle profile. Send only what changes. Your own profile, or a profile of another member when you are a manager of the organization, is changed in place. A default profile of Studio is not changed: the change is stored as a personal copy that replaces the default in your list, and the response is that copy. Anyone else gets 403. Deleting is not available through the API.
curl --request PATCH \
--url https://api.studio.us.phrase.com/v1/subtitle-profiles/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"maxLinesPerScreen": 3
}
'import requests
url = "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}"
payload = { "maxLinesPerScreen": 3 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({maxLinesPerScreen: 3})
};
fetch('https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'maxLinesPerScreen' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}"
payload := strings.NewReader("{\n \"maxLinesPerScreen\": 3\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"maxLinesPerScreen\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.studio.us.phrase.com/v1/subtitle-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxLinesPerScreen\": 3\n}"
response = http.request(request)
puts response.read_body{
"id": "6f1d2c3e-8b4a-4c5d-9e7f-123456789abc",
"name": "Two lines",
"description": "For social video",
"languages": [
"es-es"
],
"active": true,
"default": false,
"shared": false,
"minDuration": 0.7,
"maxDuration": 7,
"maxLineCharacterCount": 42,
"maxGapBetweenWords": 3,
"minGapFrames": 2,
"subtitlePosition": "bottom",
"displaySpeakerNames": false,
"maxLinesPerScreen": 2,
"charactersPerSecond": 20,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Authorizations
Body
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.
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.
128Text alignment.
left, center, right 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.
25^(|#[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+))?\))$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.
25^(|#[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+))?\))$Response
Subtitle profile updated
Rules and styling that decide how subtitles are cut and shown.
Was this page helpful?