# Change password

API base path: `panel/subpaas/password`.

API call to change the password of a Subdealer (SubPaaS) account.

## API actions

API base path: `panel/subpaas/password`.

### change

Changes SubPaaS password.

#### Parameters

| name          | description           | type   |
| ------------- | --------------------- | ------ |
| subpaas\_id   | Subpaas ID.           | int    |
| new\_password | New subpaas password. | string |

{% hint style="danger" %}
Passwords must be between 12 and 20 characters in length and include at least one uppercase letter, lowercase letter, digit, and special character (!@#$%^&\*). To maintain account security, the system tracks password history, so you can't reuse any of your last 10 passwords. If a previous password is detected, the system will return the error "Password was recently used."
{% endhint %}

#### Example

cURL

{% code overflow="wrap" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/panel/subpaas/password/change' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "fa7bf873fab9333144e171372a321b06", "subpaas_id": 99874, "new_password": "Hh6FXTt%E!Rx*%f3"}'
```

{% endcode %}

#### Response

```json
{
  "success": true
}
```

#### Errors

* 13 –
  * The dealer is not paas.
  * The dealer has different status than `NOT_BLOCKED`.
  * The dealer's tariff does not allow subpaases.
  * Found subpaas is in `DELETED` status.


---

# 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://navixy.com/docs/navixy-api/panel-api/resources/subpaas/password.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.
