Skip to main content
PUT
/
api
/
user
/
me
Update user profile
curl --request PUT \
  --url http://localhost:3000/api/user/me \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "fname": "<string>",
  "lname": "<string>",
  "picture": "<string>",
  "remember_history_count": 123,
  "max_dialogues": 123,
  "use_location": true,
  "use_tts": true,
  "dark_mode": true,
  "mustChangePassword": true,
  "updatePasswordOnSSO": true
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
fname
string

First name

lname
string

Last name

picture
string

Profile picture URL

remember_history_count
integer

Number of history items to remember

max_dialogues
integer

Maximum dialogues to load

use_location
boolean

Whether to use location services

use_tts
boolean

Whether text-to-speech is enabled

dark_mode
boolean

Whether dark mode is enabled

mustChangePassword
boolean

Whether user must change password

updatePasswordOnSSO
boolean

Reset password on SSO login

Response

Profile updated successfully

success
boolean
Example:

true

message
string

Success message