Agency Hosting: PHP

List PHP options for a website

Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.

get/api/agency-hosting/v1/websites/{website_uid}/php-settings/options

Path parameters

website_uidstring required
Example:zpwlGlp19

Agency Plan website UID

Response

Success response

namestring

php.ini directive name.

descriptionstring

What the directive controls.

default_valuestring

Value applied when no custom value is set.

allowed_valuesstring[] nullable

Values this option accepts. Null when the option accepts any value of its type.

valuestring

Value currently in effect for the website.

type'value' | 'list'

Whether the option takes a single value or a list of values.

Example response

[
  {
    "name": "upload_max_filesize",
    "description": "The maximum size in bytes of an uploaded file.",
    "default_value": "128M",
    "allowed_values": [
      "128M",
      "256M",
      "512M"
    ],
    "value": "256M",
    "type": "value"
  }
]

Changes

Changed in 1 of the 88 revisions of this API.1