RoutesUsersMe

/users/me

Update the current user; require a browser session for password or email changes and a login within 12 hours except for a first password with email disabled and no SSO identity

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-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.s.gatana.ai/api/v1/users/me" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}

Last updated on