Users & Profile
Set the language preference
PUT
Access: Bearer token required.
Stores the user's preferred language. There is no request validation schema on this route; the handler itself requires language to be one of the supported values (upper case) and rejects anything else, including a missing value. New accounts default to ENGLISH. The value is only stored on the profile; API messages are not translated.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
language*stringOne of ENGLISH, FRENCH, SPANISH, PORTUGUESE, GERMAN, CHINESE, ITALIAN, DUTCH, SWEDISH, RUSSIAN.
Language saved
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PUT 'http://localhost:4000/api/v1/user/language' \ -H 'Content-Type: application/json' \ -d '{ "language": "FRENCH"}'Example Response
{ "status": 200, "success": true, "message": "Language preference updated.", "data": { "language": "FRENCH" }}
HomeLink Hub