Update a term
curl --request PATCH \
--url https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"term": "Sign in",
"doNotTranslate": false,
"caseSensitive": false,
"usageStatus": "deprecated",
"notes": "Use the verb form; never capitalize mid-sentence."
}
'import requests
url = "https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}"
payload = {
"term": "Sign in",
"doNotTranslate": False,
"caseSensitive": False,
"usageStatus": "deprecated",
"notes": "Use the verb form; never capitalize mid-sentence."
}
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({
term: 'Sign in',
doNotTranslate: false,
caseSensitive: false,
usageStatus: 'deprecated',
notes: 'Use the verb form; never capitalize mid-sentence.'
})
};
fetch('https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}', 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}/terms/{termId}",
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([
'term' => 'Sign in',
'doNotTranslate' => false,
'caseSensitive' => false,
'usageStatus' => 'deprecated',
'notes' => 'Use the verb form; never capitalize mid-sentence.'
]),
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}/terms/{termId}"
payload := strings.NewReader("{\n \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\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}/terms/{termId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}")
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 \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"term": {
"id": "a1b2c3d4-0000-4000-8000-000000000020",
"glossaryId": "a1b2c3d4-0000-4000-8000-000000000010",
"term": "Sign in",
"doNotTranslate": false,
"caseSensitive": false,
"usageStatus": "preferred",
"notes": "Use the verb form; never capitalize mid-sentence.",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z",
"translations": [
{
"languageCode": "fr",
"value": "Se connecter",
"status": "approved",
"approvedAt": "2026-01-16T11:00:00.000Z",
"proposedValue": null
}
]
}
}
}Glossary
Update a term
Partial update of a term’s metadata (text, notes, usage status, flags) — omitted fields are left unchanged. Use the translation endpoint to change values.
PATCH
/
glossaries
/
{glossaryId}
/
terms
/
{termId}
Update a term
curl --request PATCH \
--url https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"term": "Sign in",
"doNotTranslate": false,
"caseSensitive": false,
"usageStatus": "deprecated",
"notes": "Use the verb form; never capitalize mid-sentence."
}
'import requests
url = "https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}"
payload = {
"term": "Sign in",
"doNotTranslate": False,
"caseSensitive": False,
"usageStatus": "deprecated",
"notes": "Use the verb form; never capitalize mid-sentence."
}
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({
term: 'Sign in',
doNotTranslate: false,
caseSensitive: false,
usageStatus: 'deprecated',
notes: 'Use the verb form; never capitalize mid-sentence.'
})
};
fetch('https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}', 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}/terms/{termId}",
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([
'term' => 'Sign in',
'doNotTranslate' => false,
'caseSensitive' => false,
'usageStatus' => 'deprecated',
'notes' => 'Use the verb form; never capitalize mid-sentence.'
]),
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}/terms/{termId}"
payload := strings.NewReader("{\n \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\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}/terms/{termId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/glossaries/{glossaryId}/terms/{termId}")
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 \"term\": \"Sign in\",\n \"doNotTranslate\": false,\n \"caseSensitive\": false,\n \"usageStatus\": \"deprecated\",\n \"notes\": \"Use the verb form; never capitalize mid-sentence.\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"term": {
"id": "a1b2c3d4-0000-4000-8000-000000000020",
"glossaryId": "a1b2c3d4-0000-4000-8000-000000000010",
"term": "Sign in",
"doNotTranslate": false,
"caseSensitive": false,
"usageStatus": "preferred",
"notes": "Use the verb form; never capitalize mid-sentence.",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z",
"translations": [
{
"languageCode": "fr",
"value": "Se connecter",
"status": "approved",
"approvedAt": "2026-01-16T11:00:00.000Z",
"proposedValue": null
}
]
}
}
}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.
Glossary term id (UUID).
Body
application/json
New source-language term text.
Required string length:
1 - 500Example:
"Sign in"
Toggle the do-not-translate flag.
Example:
false
Toggle case-sensitive matching.
Example:
false
Change the usage status: preferred, deprecated, or forbidden.
Available options:
preferred, deprecated, forbidden Example:
"deprecated"
New translator notes; pass null to clear.
Maximum string length:
2000Example:
"Use the verb form; never capitalize mid-sentence."

