Replace website PHP options
Replaces the custom php.ini values on an Agency Plan website with the ones provided.
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_uidstringRequiredExample:
Agency Plan website UID
zpwlGlp19Body
Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
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?