cURL
curl --request PUT \ --url https://crypto.westminister.tech/api/v1/auth/user/id/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "michael.ochieng@gmail.com", "phone_number": "+254708374149", "first_name": "Michael", "last_name": "Juma" } '
{ "id": "8d09359f-325a-4ecf-998d-dbe5eda3a498", "email": "michael.ochieng@gmail.com", "phone_number": "+254708374149", "first_name": "Michael", "last_name": "Juma", "role": "customer", "kyc_status": "pending" }
Updates user email, phone_number, first_name, last_name fields for the specified user ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User ID (UUID).
New email address.
New phone number in E.164 format.
New first name.
New last name.
User updated
User ID.
User email.
Phone in E.164 format.
Given name.
Family name.
Assigned role.
Current KYC status.