> For the complete documentation index, see [llms.txt](https://docs.conscent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.conscent.ai/version-2.0/integrating-apis-v2/update-userdetails.md).

# 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="/files/E7Gh2GUwSjDH10FQoZZJ" 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.
