Skip to Content
HomeLink Hub
Users & Profile

Update personal information

PUT
/api/v1/user/personal-info

Access: Bearer token required.

Partially updates the user's name, email, phone, bio, business name and gender; only the fields sent are changed. A new email must not belong to another account. Changing the email takes effect immediately: it does not reset isEmailVerified and no verification email is sent. Names can be changed after KYC; the change is not re-checked against the verified identity. Fields that are unset are omitted from data.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
firstName?string

Given name, 2-50 characters.

Length2 <= length <= 50
lastName?string

Family name, 2-50 characters.

Length2 <= length <= 50
email?string

New email address (lower-cased and trimmed). Must not be used by another account.

Formatemail
phone?string

Phone number. Digits, +, -, spaces and parentheses only.

Match^[\d+\-\s()]+$
bio?string

Short biography, up to 500 characters.

Lengthlength <= 500
businessName?string

Business or agency name, up to 100 characters.

Lengthlength <= 100
gender?string

One of MALE, FEMALE, OTHER, PREFER_NOT_TO_SAY.

Value in"MALE""FEMALE""OTHER""PREFER_NOT_TO_SAY"

Response Body

Personal information updated

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PUT 'http://localhost:4000/api/v1/user/personal-info' \  -H 'Content-Type: application/json' \  -d '{  "firstName": "Adaeze",  "lastName": "Okonkwo",  "phone": "+2348031234567",  "bio": "Lekki and Ikoyi rentals specialist with eight years of experience.",  "businessName": "Okonkwo Realty",  "gender": "FEMALE"}'
Example Response
{  "status": 200,  "success": true,  "message": "Personal information updated successfully.",  "data": {    "id": "665f1c2e9b1d4a0012ab34cd",    "firstName": "Adaeze",    "lastName": "Okonkwo",    "email": "adaeze.okonkwo@example.com",    "phone": "+2348031234567",    "bio": "Lekki and Ikoyi rentals specialist with eight years of experience.",    "businessName": "Okonkwo Realty",    "gender": "FEMALE"  }}