Set FTP user password

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

Change the password of a FTP user.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetPassword”.
  • params array
    {“username”: Name of the user,

    “password”: New password}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("username" =>"admin",
         "password" => "12abCD%@",
        );
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingFTPUserUpdate($idSession, "NW1024", "SetPassword", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}