> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/hosting/nodejs/replace-node-js-environment-variables.md).

# Replace Node.js environment variables

Replaces the website's Node.js environment variables with the ones provided.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env" method="put" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
