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

Replace website PHP options

Replaces the custom php.ini values on an Agency Plan website with the ones provided.

Replace website PHP options

put

Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Body
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
put/api/agency-hosting/v1/websites/{website_uid}/php-settings/options
PUT /api/agency-hosting/v1/websites/{website_uid}/php-settings/options HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "options": [
    {
      "name": "memory_limit",
      "value": "256M"
    }
  ]
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?