Set a TM entry translation
curl --request PUT \
--url https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "Bienvenue"
}
'import requests
url = "https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}"
payload = { "value": "Bienvenue" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value: 'Bienvenue'})
};
fetch('https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}', 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}/entries/{entryId}/translations/{lang}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'value' => 'Bienvenue'
]),
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}/entries/{entryId}/translations/{lang}"
payload := strings.NewReader("{\n \"value\": \"Bienvenue\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"Bienvenue\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": \"Bienvenue\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"entry": {
"id": "tme_7b1c4d90",
"tmId": "tm_3f2a9b1c",
"sourceText": "Welcome",
"context": "Greeting on the home page",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z",
"translations": [
{
"languageCode": "fr",
"value": "Bienvenue",
"status": "approved",
"approvedAt": "2026-01-16T11:00:00.000Z",
"proposedValue": null
}
]
}
}
}Translation Memory
Set a TM entry translation
Upsert the translation of an entry in one language, creating it if absent. When the TM requires approval and you cannot approve, the value is stored as a proposal on proposedValue rather than replacing the live value.
Constraints:
- For a Translator-scoped token, the target language must be within the token owner’s assigned languages, or the request is rejected with 403.
PUT
/
translation-memories
/
{tmId}
/
entries
/
{entryId}
/
translations
/
{lang}
Set a TM entry translation
curl --request PUT \
--url https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "Bienvenue"
}
'import requests
url = "https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}"
payload = { "value": "Bienvenue" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value: 'Bienvenue'})
};
fetch('https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}', 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}/entries/{entryId}/translations/{lang}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'value' => 'Bienvenue'
]),
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}/entries/{entryId}/translations/{lang}"
payload := strings.NewReader("{\n \"value\": \"Bienvenue\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"Bienvenue\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/translation-memories/{tmId}/entries/{entryId}/translations/{lang}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": \"Bienvenue\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"entry": {
"id": "tme_7b1c4d90",
"tmId": "tm_3f2a9b1c",
"sourceText": "Welcome",
"context": "Greeting on the home page",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z",
"translations": [
{
"languageCode": "fr",
"value": "Bienvenue",
"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
Translation memory id (UUID) or id-embedded path slug.
Translation-memory entry id (UUID).
Language code, optionally with a file extension (fr or fr.json).
Body
application/json
The translated text to store for the target language in the path.
Example:
"Bienvenue"

