Skip to main content
PUT
/
users
/
current
Update Current User
curl --request PUT \
  --url https://api.example.com/users/current \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "",
  "first_name": "",
  "last_name": "",
  "phone": "",
  "description": ""
}
'
{
  "id": "<string>",
  "username": "<string>",
  "email": "<string>",
  "enabled": true,
  "password_is_expired": true,
  "remaining_failed_attempts": 123,
  "first_name": "<string>",
  "last_name": "<string>",
  "phone": "<string>",
  "description": "<string>",
  "role": "admin",
  "is_remote_user": false
}

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string | null
default:""
first_name
string | null
default:""
last_name
string | null
default:""
phone
string | null
default:""
description
string | null
default:""

Response

Successful Response

id
string
required
username
string
required
email
string
required
enabled
boolean
required
password_is_expired
boolean
required
remaining_failed_attempts
integer
required
first_name
string | null
last_name
string | null
phone
string | null
description
string | null
role
enum<string> | null
Available options:
admin,
viewer,
editor,
remote_user,
partner
is_remote_user
boolean
default:false