Hosting: PHP
Update PHP extensions
Enables or disables PHP extensions (modules) for the website.
Use the Get PHP details endpoint to check the current extension states before changing them.
patch/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Request body
Example request
{
"enable": [
"json",
"yaml"
],
"disable": [
"imagick"
]
}Response
Success empty response
Example response
{
"message": "Request accepted"
}