v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Hosting: PHP

Update PHP options

Updates PHP options for the website (e.g. memory_limit, max_execution_time, upload_max_filesize). Only provide the options you want to change, inside the options object.

Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.

patch/api/hosting/v1/accounts/{username}/websites/{domain}/php/options

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

Request body

optionsobject required

Map of PHP options to update, keyed by option name. Only include options you want to change.

Example request

{
  "options": {
    "memory_limit": "512M",
    "max_execution_time": 300,
    "upload_max_filesize": "256M"
  }
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}