> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hostrox.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Password (Hosting)

> Change the user password of a hosting service via the API

This action changes the user password of the selected hosting service through the API.

## Method / Endpoint

```text theme={null}
POST {{API_URL}}/order/transaction
```

For Hostrox, the full URL is:

```text theme={null}
POST https://client.hostrox.net/api/reseller/order/transaction
```

## Request parameters

| Name       | Required | Description                                   |
| ---------- | -------- | --------------------------------------------- |
| `key`      | Yes      | API Key                                       |
| `id`       | Yes      | Order ID number                               |
| `action`   | Yes      | The transaction to perform: `change-password` |
| `password` | Yes      | New password                                  |

## Example cURL request

```bash theme={null}
curl --location 'https://client.hostrox.net/api/reseller/order/transaction' \
  --header 'Content-Type: application/json' \
  --data '{
    "key": "UzZBSlBWeWk0UEcrVWxlU0RjS1B1dz09",
    "id": 3,
    "action": "change-password",
    "password": "lv34EGMrGY32VbvMC"
  }'
```

## Example JSON response

```json theme={null}
{
  "status": "successful"
}
```

<Warning>
  Always call this endpoint over HTTPS to keep the password confidential in transit.
</Warning>
