Set user language preference
POST/company/users/lang
Allows the user to configure their preferred language.
Objective
To facilitate the customization of the interface and content language according to the user's preferences.
Use Cases
- User changes the interface language
- User selects their preferred language during registration
- User updates language preferences
Authentication
- Requires a valid JWT (middleware m.isLoged)
Persistence
- The change is saved in the database
- Affects all future API responses
- Used to send emails in the correct language
Supported Languages
- es (Spanish)
- en (English)
- fr (French)
- de (German)
Request
Responses
- 200
- 400
- 401
Language updated successfully
Invalid request. Possible causes:
- Unsupported language
- Missing language field
Unauthorized (invalid token or insufficient permissions)