PATCH
/
user
/
profile
cURL
curl --request PATCH \
  --url https://api.nh.staging.mum.juspay.net/service2/user/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "dob": "<string>",
  "email": "<string>",
  "employer": "<string>",
  "first_name": "<string>",
  "gender": "male",
  "last_name": "<string>",
  "occupation": "salaried"
}
'
{
  "phone": "<string>",
  "profile_complete": true,
  "user_id": "<string>",
  "aadhaar_last4": "<string>",
  "address": "<string>",
  "dob": "<string>",
  "email": "<string>",
  "employer": "<string>",
  "first_name": "<string>",
  "gender": "male",
  "last_name": "<string>",
  "occupation": "salaried"
}

Authorizations

Authorization
string
header
required

JWT access token. Obtain from /auth/otp/verify endpoint.

Body

application/json

Request body for PATCH /user/profile.

All fields are optional — only provided fields are updated. dob must be in "YYYY-MM-DD" format. phone and aadhaar_last4 cannot be updated via this endpoint.

address
string | null
dob
string | null

Date of birth in "YYYY-MM-DD" format.

email
string | null
employer
string | null
first_name
string | null
gender
string | null

One of: "male", "female", "other".

Example:

"male"

last_name
string | null
occupation
string | null

One of: "salaried", "self_employed", "professional", "student", "homemaker", "retired", "other".

Example:

"salaried"

Response

Updated user profile

Response body for PATCH /user/profile.

phone
string
required
profile_complete
boolean
required

true when both first_name and last_name are present.

user_id
string
required
aadhaar_last4
string | null

Aadhaar last-4 masked as "XXXXXXXX{last4}", e.g. "XXXXXXXX1234".

address
string | null
dob
string | null

Date of birth as "YYYY-MM-DD" string, if set.

email
string | null
employer
string | null
first_name
string | null
gender
string | null

One of: "male", "female", "other".

Example:

"male"

last_name
string | null
occupation
string | null

One of: "salaried", "self_employed", "professional", "student", "homemaker", "retired", "other".

Example:

"salaried"