# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.conscent.ai/version-2.0/integrating-apis-v2/update-userdetails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
