List available PHP versions for a website
Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
website_uidstringRequiredExample:
Agency Plan website UID
zpwlGlp19Responses
200
Success response
application/json
Array of AgencyHosting.V1.Php.VersionResource
versionstringOptionalExample:
PHP version available for the website.
8.2401
Unauthenticated response
application/json
500
Error response
application/json
get/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions
GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/versions HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"version": "8.2"
}
]Last updated
Was this helpful?