> 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/agency-hosting/php/update-website-php-version.md).

# Update website PHP version

Switches an Agency Plan website to a different PHP version.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/agency-hosting/v1/websites/{website\_uid}/php-settings/version" method="patch" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
