Update a glossary
curl --request PATCH \
--url https://api.rask.ai/v3/glossaries/{glossary_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
}
}
'import requests
url = "https://api.rask.ai/v3/glossaries/{glossary_id}"
payload = { "entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({entries: {dubbing: 'doblaje', 'voice clone': 'clon de voz'}})
};
fetch('https://api.rask.ai/v3/glossaries/{glossary_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.rask.ai/v3/glossaries/{glossary_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([
'entries' => [
'dubbing' => 'doblaje',
'voice clone' => 'clon de voz'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.rask.ai/v3/glossaries/{glossary_id}"
payload := strings.NewReader("{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.rask.ai/v3/glossaries/{glossary_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/glossaries/{glossary_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "glossary",
"id": "e3b8d1f5-4a2c-4e9d-8b7f-2c6a0d1e9f38",
"name": "Product terms",
"source_language": "en",
"target_language": "es",
"version": 4,
"entry_count": 2,
"entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
},
"created_at": "2026-09-02T08:30:00Z",
"created_by": {
"user_id": "0d9a4e1c-7f2b-4c8d-a1e5-3b6f9c2d8e47"
}
}Glossaries
Update a glossary
Renames a glossary or replaces its whole entry map and increments its version.
PATCH
/
glossaries
/
{glossary_id}
Update a glossary
curl --request PATCH \
--url https://api.rask.ai/v3/glossaries/{glossary_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
}
}
'import requests
url = "https://api.rask.ai/v3/glossaries/{glossary_id}"
payload = { "entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({entries: {dubbing: 'doblaje', 'voice clone': 'clon de voz'}})
};
fetch('https://api.rask.ai/v3/glossaries/{glossary_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.rask.ai/v3/glossaries/{glossary_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([
'entries' => [
'dubbing' => 'doblaje',
'voice clone' => 'clon de voz'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.rask.ai/v3/glossaries/{glossary_id}"
payload := strings.NewReader("{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.rask.ai/v3/glossaries/{glossary_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/glossaries/{glossary_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"voice clone\": \"clon de voz\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "glossary",
"id": "e3b8d1f5-4a2c-4e9d-8b7f-2c6a0d1e9f38",
"name": "Product terms",
"source_language": "en",
"target_language": "es",
"version": 4,
"entry_count": 2,
"entries": {
"dubbing": "doblaje",
"voice clone": "clon de voz"
},
"created_at": "2026-09-02T08:30:00Z",
"created_by": {
"user_id": "0d9a4e1c-7f2b-4c8d-a1e5-3b6f9c2d8e47"
}
}Projects keep the version they attached; nothing is retranslated (use updateTranslationSettings and retranslateSegments to apply a new version). Last writer wins.
When to use: to change terms.
Side effects: None beyond the glossary.
Cost: Free.
Idempotency:
Idempotency-Key accepted (SDKs send one); retries within 24 h replay the first response.
Plan: glossary.
Required scopes: glossaries:write
Errors: feature_not_in_plan (403), glossary_entries_invalid (422)Authorizations
Headers
Body
application/json
Response
OK: Glossary.
A glossary for one language pair.