Update account information
[C#] public void UpdateAccountById( string id, string newUsername, string newPassword, string newEmail, string newFirstName, string newLastName, AccountRoles newRole, string newPlanId );
null or empty string, login will not be changed)null, password will not be changed)null, Plan will not be changed)Note: Sitebuilder for Linux/Unix implementation of this method doesn't allow to change the account role to Administrator.
| Request |
|---|
POST /wsb/ServiceFacade/3.2.1/AccountWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/3.2.1/AccountService/UpdateAccountById"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<CredentialsSoapHeader xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService">
<Login>string</Login>
<Password>string</Password>
</CredentialsSoapHeader>
</soap:Header>
<soap:Body>
<UpdateAccountById xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService">
<id>string</id>
<newUsername>string</newUsername>
<newPassword>string</newPassword>
<newEmail>string</newEmail>
<newFirstName>string</newFirstName>
<newLastName>string</newLastName>
<newRole>Administrator or Reseller or SiteOwner</newRole>
<newPlanId>string</newPlanId>
</UpdateAccountById>
</soap:Body>
</soap:Envelope> |
| Response |
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateAccountByIdResponse xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService" />
</soap:Body>
</soap:Envelope> |