Replace website PHP extensions
Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided.
Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the "built-in" state, are always active and are unaffected.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
website_uidstringRequiredExample:
Agency Plan website UID
zpwlGlp19Body
extensionsstring[] · max: 500RequiredExample:
Extension names, exactly as returned by the extensions endpoint.
["bz2","zip"]Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
put/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions
PUT /api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"extensions": [
"bz2",
"zip"
]
}{
"message": "Request accepted"
}Last updated
Was this helpful?