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

Is of the user

{
    "message": "User Details Updated Successfully.",
    "userData": {
        "status": "ACTIVE",
        "userId": "679ca69eec6aabe9d7417a65",
        "name": "Ayush",
        "email": "gsbehb@gmail.com",
        "countryCode": "+91",
        "gender": "MALE",
        "dateOfBirth": "2025-01-01T00:00:00.000Z",
        "address": {
            "name": "",
            "apartment": "",
            "area": "",
            "pincode": "",
            "landmark": "",
            "city": "",
            "state": "",
            "country": ""
        },
        "usedCoupons": [],
        "clientSpecificIds": [],
        "migrated": false,
        "isPhoneVerified": false,
        "isEmailVerified": false,
        "createdAt": "2025-01-31T10:31:58.799Z",
        "updatedAt": "2025-01-31T10:31:59.046Z"
    }
}

You need to pass userIdof the user.

Last updated