List available PHP versions for an order
Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on.
Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
order_idintegerRequiredExample:
Agency Plan order ID
123456Responses
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/orders/{order_id}/websites/php-settings/versions
GET /api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"version": "8.2"
}
]Last updated
Was this helpful?