Update preferred language
Updates the user’s preferred language for the application interface. Supported languages: en (English) or de (German). This affects the language of UI elements, notifications, and other system messages.
POST
/account/languageAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonlanguagestringrequiredPreferred language code
Allowed:
endeResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404User not found
Request
curl -X POST "https://leadtime.app/api/public/account/language" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"language": "en"
}'const response = await fetch("https://leadtime.app/api/public/account/language", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"language": "en"
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/account/language",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"language": "en"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
User not found