Creates one translation, or several when the body has a translations array. Requires Super User scope.A key created in any namespace other than common is also created in common, with the same locale, value, and description, unless common already has that key. The response reports this in common_entry_created. An id is generated when you omit it.A new translation is marked as customized (source is api), so a filesystem sync never overwrites it. Send source=filesystem to let the next sync replace it.The change is accepted and applied shortly after this response, so a read made immediately after can still show the old value.A single create of a locale, namespace, and key that already exists returns 409; change it with PUT /translations. Send a translations array to act on several translations in one request. A bulk request always returns 200: each item that failed is listed in errors with its position in the array and the reason, and summary counts the results.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired
Examples
Responses
🟢200OK
application/json
The translation that was created, or the bulk result.
Bodyapplication/json
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠409Conflict
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location'https://awqacore01.crexendocloud.com/ns-api/v2/translations' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"locale": "fr-CA",
"namespace": "common",
"key": "SEARCH_TRANSLATIONS",
"value": "Rechercher des traductions...",
"description": "Placeholder text in the translation search box"
}'
Response Response Example
200 - One translation
{"id":"9a1c4e2b-5d3f-4a6b-8c7d-0e1f2a3b4c5d","locale":"fr-CA","namespace":"common","key":"SEARCH_TRANSLATIONS","value":"Rechercher des traductions...","common_entry_created":false}