> For the complete documentation index, see [llms.txt](https://zpass.docs.aleo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zpass.docs.aleo.org/zpass-sdk/overview/setnewhost.md).

# setNewHost

## Description

The `setNewHost` method allows you to update the host URL for the `ProgramManager`. This is useful if the API endpoint for your Aleo network changes or if you need to switch between different environments (e.g., staging, production).

### Parameters

* **`host` (string)**: The new host URL to be set for the `ProgramManager`. It must be a valid URL.

### Example&#x20;

```javascript
zpassSdk.setNewHost('http://localhost:3030');
```
