Skip to main content
PUT
/
api
/
v1
/
users
/
{user_id}
Update User
curl --request PUT \
  --url http://localhost:8000/api/v1/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>",
  "password_confirm": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "phone_number": "<string>"
}
'
{
  "id": 123,
  "email": "[email protected]",
  "profile": {
    "first_name": "<string>",
    "last_name": "<string>",
    "phone_number": "<string>"
  },
  "is_google_recaptcha_response_valid": true
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

user_id
integer
required

Body

application/json

The schema for updating a user.

email
string<email> | null
password
string | null
password_confirm
string | null
first_name
string | null
last_name
string | null
phone_number
string | null
Required string length: 9 - 15

Response

Successful Response

The schema for a user.

id
integer
required
email
string<email>
required
profile
object
required

The base schema for a profile.

is_google_recaptcha_response_valid
boolean | null