For the complete documentation index, see llms.txt. This page is also available as Markdown.

Replace website PHP extensions

Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided.

Replace website PHP extensions

put

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_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Body
extensionsstring[] · max: 500Required

Extension names, exactly as returned by the extensions endpoint.

Example: ["bz2","zip"]
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
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?