curl --request PATCH \
--url https://api.textsetu.com/api/v1/glossaries/{glossaryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "selected",
"approvalRequired": true,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
'import requests
url = "https://api.textsetu.com/api/v1/glossaries/{glossaryId}"
payload = {
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "selected",
"approvalRequired": True,
"approvalBypassAdmins": True,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
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({
name: 'Brand Terms',
description: 'Approved product and brand terminology for all UI surfaces.',
scope: 'selected',
approvalRequired: true,
approvalBypassAdmins: true,
qaTermConsistency: 'warning',
qaForbiddenTerms: 'error'
})
};
fetch('https://api.textsetu.com/api/v1/glossaries/{glossaryId}', 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.textsetu.com/api/v1/glossaries/{glossaryId}",
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([
'name' => 'Brand Terms',
'description' => 'Approved product and brand terminology for all UI surfaces.',
'scope' => 'selected',
'approvalRequired' => true,
'approvalBypassAdmins' => true,
'qaTermConsistency' => 'warning',
'qaForbiddenTerms' => 'error'
]),
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.textsetu.com/api/v1/glossaries/{glossaryId}"
payload := strings.NewReader("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\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.textsetu.com/api/v1/glossaries/{glossaryId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/glossaries/{glossaryId}")
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 \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"glossary": {
"id": "a1b2c3d4-0000-4000-8000-000000000010",
"orgId": "org_5a4b3c2d",
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Update a glossary
Partial update of a glossary’s settings — omitted fields are left unchanged. Disabling approvalRequired also clears approvalBypassAdmins, which is meaningless without it.
curl --request PATCH \
--url https://api.textsetu.com/api/v1/glossaries/{glossaryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "selected",
"approvalRequired": true,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
'import requests
url = "https://api.textsetu.com/api/v1/glossaries/{glossaryId}"
payload = {
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "selected",
"approvalRequired": True,
"approvalBypassAdmins": True,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
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({
name: 'Brand Terms',
description: 'Approved product and brand terminology for all UI surfaces.',
scope: 'selected',
approvalRequired: true,
approvalBypassAdmins: true,
qaTermConsistency: 'warning',
qaForbiddenTerms: 'error'
})
};
fetch('https://api.textsetu.com/api/v1/glossaries/{glossaryId}', 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.textsetu.com/api/v1/glossaries/{glossaryId}",
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([
'name' => 'Brand Terms',
'description' => 'Approved product and brand terminology for all UI surfaces.',
'scope' => 'selected',
'approvalRequired' => true,
'approvalBypassAdmins' => true,
'qaTermConsistency' => 'warning',
'qaForbiddenTerms' => 'error'
]),
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.textsetu.com/api/v1/glossaries/{glossaryId}"
payload := strings.NewReader("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\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.textsetu.com/api/v1/glossaries/{glossaryId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/glossaries/{glossaryId}")
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 \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"selected\",\n \"approvalRequired\": true,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"glossary": {
"id": "a1b2c3d4-0000-4000-8000-000000000010",
"orgId": "org_5a4b3c2d",
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Authorizations
API token: tsu_pat_… (PAT) or tsu_proj_… (project token). The token's granted RBAC permissions determine access; see each operation's x-permission.
Path Parameters
Glossary id (UUID) or id-embedded path slug.
Body
New glossary name.
1 - 100"Brand Terms"
New description; pass null to clear it.
500"Approved product and brand terminology for all UI surfaces."
Change project applicability: all projects or only selected assigned ones.
all, selected "selected"
Toggle the term-translation approval workflow.
true
Auto-approve admins' edits while approval is required.
true
Severity for missing-required-term issues: off, warning, or error.
off, warning, error "warning"
Severity for forbidden/deprecated-term issues: off, warning, or error.
off, warning, error "error"

