curl --request PATCH \
--url https://api.textsetu.com/api/v1/translation-memories/{tmId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"rebaseSourceData": false
}
'import requests
url = "https://api.textsetu.com/api/v1/translation-memories/{tmId}"
payload = {
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": False,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"rebaseSourceData": False
}
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: 'Marketing TM',
description: 'Reusable copy for marketing surfaces.',
sourceLanguage: 'en',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: false,
minMatchPercentage: 75,
penalties: {caseMismatch: 1, whitespace: 1, punctuation: 2},
rebaseSourceData: false
})
};
fetch('https://api.textsetu.com/api/v1/translation-memories/{tmId}', 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/translation-memories/{tmId}",
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' => 'Marketing TM',
'description' => 'Reusable copy for marketing surfaces.',
'sourceLanguage' => 'en',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => false,
'minMatchPercentage' => 75,
'penalties' => [
'caseMismatch' => 1,
'whitespace' => 1,
'punctuation' => 2
],
'rebaseSourceData' => false
]),
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/translation-memories/{tmId}"
payload := strings.NewReader("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\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/translation-memories/{tmId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/translation-memories/{tmId}")
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\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"translationMemory": {
"id": "tm_3f2a9b1c",
"orgId": "org_5d4c3b2a",
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Update a translation memory
Partial update — omitted fields are left unchanged. Set rebaseSourceData: true when changing sourceLanguage to also move existing entry data onto the new source.
Constraints:
approvalBypassAdminsis meaningless withoutapprovalRequiredand is forced off when approval is disabled.
curl --request PATCH \
--url https://api.textsetu.com/api/v1/translation-memories/{tmId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"rebaseSourceData": false
}
'import requests
url = "https://api.textsetu.com/api/v1/translation-memories/{tmId}"
payload = {
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": False,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"rebaseSourceData": False
}
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: 'Marketing TM',
description: 'Reusable copy for marketing surfaces.',
sourceLanguage: 'en',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: false,
minMatchPercentage: 75,
penalties: {caseMismatch: 1, whitespace: 1, punctuation: 2},
rebaseSourceData: false
})
};
fetch('https://api.textsetu.com/api/v1/translation-memories/{tmId}', 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/translation-memories/{tmId}",
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' => 'Marketing TM',
'description' => 'Reusable copy for marketing surfaces.',
'sourceLanguage' => 'en',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => false,
'minMatchPercentage' => 75,
'penalties' => [
'caseMismatch' => 1,
'whitespace' => 1,
'punctuation' => 2
],
'rebaseSourceData' => false
]),
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/translation-memories/{tmId}"
payload := strings.NewReader("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\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/translation-memories/{tmId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/translation-memories/{tmId}")
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\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n },\n \"rebaseSourceData\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"translationMemory": {
"id": "tm_3f2a9b1c",
"orgId": "org_5d4c3b2a",
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"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
Translation memory id (UUID) or id-embedded path slug.
Body
New name for the translation memory.
1 - 100"Marketing TM"
New description, or null to clear it.
500"Reusable copy for marketing surfaces."
New source-language code, or null to clear it. Pair with rebaseSourceData to migrate entries.
10"en"
all = every project may leverage it; selected = only assigned projects.
all, selected "all"
When true, entry translations by non-approvers are stored as proposals.
false
When true, org admins' edits are auto-approved even while approval is required.
false
Minimum match % below which fuzzy matches are not surfaced (floor 40).
40 <= x <= 10075
Per-difference score deductions applied to near-exact matches.
Show child attributes
Show child attributes
When changing sourceLanguage, also move existing entry data to the new source (rebase). Not persisted.
false

