Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json
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
}Update a user by ID.
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
}The access token received from the authorization server in the OAuth 2.0 flow.