POST /language/{lang}/{key}
Create a new language translation key
Create a new language translation key
URI Params
| Key | Type | Example | Description |
|---|
| langrequired | string | | |
| keyrequired | string | | |
Request Headers
Request Body
| Key | Type | Example | Description |
|---|
| valueoptional | string | | |
Request Reply: Success
{
"_meta": {
"created": 1782166695,
"entity": 1,
"guid": "a23575f49d0af385314c1f02280163374297e018a692e5e4ab85eb307ebf6ebc",
"update_hash": "60e27209fa93063b5605e41605c2722ed428cae0",
"updated": 1782166695
},
"key": "order_sync",
"language": "en",
"translation": "Welcome to our application"
}
Request Reply: Error
{
"code": 401,
"error": "INVALID_ACCESS_TOKEN"
}
Error Details
| Status | Error Code | Description |
|---|
401 | INVALID_ACCESS_TOKEN | Authentication required or invalid token |
403 | INSUFFICIENT_PERMISSIONS | Insufficient permissions for this operation |
Required Permissions
| Permission | Description |
|---|
Bearer token | Access token required via Authorization header, x-authtoken, x-token, query param, or cookie |
language_create | Required scope: language_create |
Back to Languages Return to the Languages category to view other endpoints All API Categories Browse all available API categories