PATCH
/
users
/
{user_id}
cURL
curl --request PATCH \
  --url http://localhost:8080/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": {
    "city": "Bengaluru",
    "country": "IN",
    "line1": "123, MG Road",
    "line2": "Flat 4B, Sunrise Apartments",
    "pincode": "560001",
    "state": "Karnataka"
  },
  "dob": "2000-01-15",
  "email": "<string>",
  "first_name": "<string>",
  "gender": "male",
  "last_name": "<string>"
}
'
{
  "phone_country_code": "<string>",
  "phone_number": "<string>",
  "status": "onboarding",
  "user_id": "<string>",
  "address": {
    "city": "Bengaluru",
    "country": "IN",
    "line1": "123, MG Road",
    "line2": "Flat 4B, Sunrise Apartments",
    "pincode": "560001",
    "state": "Karnataka"
  },
  "dob": "2000-01-15",
  "email": "<string>",
  "first_name": "<string>",
  "gender": "male",
  "last_name": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

User ID

Body

application/json
address
object

Structured address details for user profiles and insurance documents.

dob
string | null
Example:

"2000-01-15"

email
string | null
first_name
string | null
gender
null | enum<string>

User gender.

Available options:
male,
female,
other
last_name
string | null

Response

User updated

phone_country_code
string
required
phone_number
string
required
status
enum<string>
required

User lifecycle status.

Available options:
onboarding,
active,
deactivated
user_id
string
required
address
object

Structured address details for user profiles and insurance documents.

dob
string | null

Date of birth as "YYYY-MM-DD".

Example:

"2000-01-15"

email
string | null
first_name
string | null
gender
null | enum<string>

User gender.

Available options:
male,
female,
other
last_name
string | null