Gatana logoGatana Docs
RoutesUsersMe

/users/me

Update the current authenticated user

PUT
/users/me
AuthorizationBearer <token>

In: header

Request Body

application/json

email?string

New email address; requires emailVerificationCode

Match^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
name?string

New display name

password?string

New password of at least 8 characters

Length8 <= length
emailVerificationCode?string

Six-digit code sent to the new email address

Length6 <= length <= 6

Response Body

application/json

curl -X PUT "https://YOUR_ORG_ID.gatana.ai/api/v1/users/me" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}