Skip to main content
PUT
/
api
/
user
/
me
Update user profile or change password
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/me \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "canvasApiToken": "<string>",
  "email": "jsmith@example.com",
  "fname": "<string>",
  "lname": "<string>",
  "picture": "<string>",
  "remember_history_count": 123,
  "use_location": true,
  "use_tts": true,
  "dark_mode": true,
  "max_dialogues": 123,
  "pin_ui": true,
  "showSideBar": true,
  "showPriaOptions": true,
  "galleryAsGrid": true,
  "ragOnlySearch": true,
  "browser_voice": "<string>",
  "browser_voices": [
    "<string>"
  ],
  "mustChangePassword": true,
  "updatePasswordOnSSO": true,
  "rt_voice": "<string>"
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

Any combination of authorized user properties. Only fields from the authorized list are accepted.

canvasApiToken
string

Canvas LMS API token

email
string<email>

User email address

fname
string

First name

lname
string

Last name

picture
string

Profile picture URL

remember_history_count
integer

Number of history items to remember

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

max_dialogues
integer

Maximum dialogues to load

pin_ui
boolean

Whether the UI sidebar is pinned

showSideBar
boolean

Whether to show the sidebar

showPriaOptions
boolean

Whether to show Pria options panel

Whether to display gallery as grid

Whether to restrict search to RAG only

browser_voice
string

Selected browser voice for TTS

browser_voices
string[]

Available browser voices

mustChangePassword
boolean

Whether user must change password on next login

updatePasswordOnSSO
boolean

Reset password on SSO login

rt_voice
string

Real-time voice selection

Response

Profile updated or password changed successfully

success
boolean
Example:

true

message
string

Either 'Profile updated!' or 'Password Changes Successfully'