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"
}
'

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

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