Skip to main content
PATCH
/
users
/
language
curl --request PATCH \ --url https://{host}/users/language \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-user-id: <x-user-id>' \ --data ' { "language": "en" } '

Documentation Index

Fetch the complete documentation index at: https://docs.wealthyhood.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the endpoint.

Headers

x-user-id
string
required

MongoDB ObjectId of the user whose language preference should be updated

Pattern: ^[a-f0-9]{24}$

Body

application/json
language
enum<string>
required

User's preferred language. Valid values are "en" (English) or "el" (Greek).

Available options:
en,
el
Example:

"en"

Response

Language preference updated successfully