Update UserDetails
Update details of the user
PATCH
{API_URL}/client/update-user
Auth required: YES
Please pass your API key as the username and API secret as the password as Basic Auth to access the endpoint
Query Parameters
Name
Type
userId
Id of the user

{
"message": "User Details Updated Successfully.",
"userData": {
"status": "ACTIVE",
"userId": "681c74b2333e169d16a7e58b",
"name": "Shivam Dubey",
"email": "[email protected]",
"countryCode": "+91",
"phone": "98679796896",
"gender": "MALE",
"dateOfBirth": "2025-05-13T16:13:02.128Z",
"address": {
"name": "",
"apartment": "",
"area": "",
"pincode": "",
"landmark": "",
"city": "",
"state": "",
"country": ""
},
"usedCoupons": [],
"clientSpecificIds": [],
"migrated": false,
"isPhoneVerified": true,
"isEmailVerified": true,
"shippingAddress": [
{
"name": "",
"apartment": "20/41 Rambagh",
"area": "",
"pincode": "2820006",
"landmark": "",
"city": "Agra",
"state": "UP",
"country": "USA",
"_id": "681c94453b8e51752d8b55d9"
}
],
"billingAddress": [
{
"name": "",
"apartment": "20/41 Rambagh",
"area": "",
"pincode": "282008",
"landmark": "",
"city": "Agra",
"state": "UP",
"country": "USA",
"_id": "681c94453b8e51752d8b55d8"
},
{
"name": "",
"apartment": "20/41 Rambagh",
"area": "",
"pincode": "282006",
"landmark": "",
"city": "Agra",
"state": "UP",
"country": "INDIA",
"_id": "681c9aa0686c9aa662232d9a"
}
],
"createdAt": "2025-05-08T09:09:08.369Z",
"updatedAt": "2025-05-08T11:50:56.442Z"
}
}
You need to pass userIdof the user.
Last updated