Set mailbox quota

				
					StructOperationResponse WebHostingMailUpdate(string $IDsession, string $id, string $action, array $params)
				
			

Set a new quota to the mailbox.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetQuota”.
  • params array
    {“email”: email address, “quota”: new size (in MB),}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("email" => "admin@wordpress.netim.com",
         "quota" => 4096,
        );
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingMailUpdate($idSession, "NW1024", "SetQuota", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}