# Update UserDetails

## Update details of the user

<mark style="color:blue;">`PATCH`</mark> `{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 |

<figure><img src="https://380225236-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcoDfVWiJBvgTq8DbifIH%2Fuploads%2Fhgab2fTErWJf55H7FSi2%2FScreenshot%202025-02-17%20at%2011.32.05%20AM.png?alt=media&#x26;token=91460842-f9ec-43e5-bbf0-50d1060e776c" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="200: OK " %}

```
{
    "message": "User Details Updated Successfully.",
    "userData": {
        "status": "ACTIVE",
        "userId": "681c74b2333e169d16a7e58b",
        "name": "Shivam Dubey",
        "email": "shivamdubey+kljo@conscent.ai",
        "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"
    }
}
```

{% endtab %}
{% endtabs %}

> You need to pass userIdof the user.
