Skip to main content
PATCH
Mettre à jour le profil de l’utilisateur authentifié

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

application/json
name
string

Full name. Kept for backwards compat - prefer firstName/lastName. When firstName or lastName is set, name is rebuilt from them.

Maximum string length: 120
Exemple:

"Jane Smith"

firstName
string
Maximum string length: 80
Exemple:

"Jane"

lastName
string
Maximum string length: 80
Exemple:

"Smith"

displayName
string
Maximum string length: 80
Exemple:

"Jane"

country
string
Maximum string length: 80
Exemple:

"France"

onboardingCompleted
boolean

Marks onboarding as completed (step 4 of the wizard).

twoFactorEnabled
boolean

Force-set twoFactorEnabled (workaround for Better Auth bearer mode).

image
string

Avatar image URL or data URI (used by the preset avatar picker). When set, overrides the uploaded avatar.

Exemple:

"data:image/svg+xml;base64,..."

Réponse

200 - undefined