Agency Hosting: PHP

Replace website PHP extensions

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.

put/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions

Path parameters

website_uidstring required
Example:zpwlGlp19

Agency Plan website UID

Request body

extensionsstring[] required

Extension names, exactly as returned by the extensions endpoint.

Example request

{
  "extensions": [
    "bz2",
    "zip"
  ]
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes