# Update password / Create account

The **`update-password`** endpoint provides a flexible solution for both creating a new account for a customer in the loyalty program and updating the existing password for an account.&#x20;

This dual functionality streamlines the process for partners, making it easier to manage customer credentials within the loyalty program.

### Request

<mark style="color:orange;">**POST**</mark> &#x20;

```
https://interface.experience-hotel.com/api/xp-guest-account/update-password
```

```json
{
    "email": "test@test.com",
    "password": "123456"
}
```

To utilize this endpoint, partners must send a JSON payload in the body of the request containing the following information:

* **email**: The email address of the customer whose account is being created or updated.
* **password**: The new password that the customer has chosen for their account.

### Response

Upon successfully processing the request, the API will return:

* **Status Code**: <mark style="color:green;">**`200 OK`**</mark>\
  The response will not include any additional message or data.

\ <br>


---

# 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://experience-crm.gitbook.io/experience-crm-api/guests/guests-personal-space/update-password-create-account.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.
