SWsoft SiteBuilder Integration API v3.2 Reference

AccountWebService.UpdateAccountById Method 

 [This is preliminary documentation and subject to change.]

Update account information

[C#]
public void UpdateAccountById(
   string id,
   string newUsername,
   string newPassword,
   string newEmail,
   string newFirstName,
   string newLastName,
   AccountRoles newRole,
   string newPlanId
);

Parameters

id
ID of account to be updated
newUsername
New username (if null or empty string it will not be changed)
newPassword
New password (if null, password will not be changed)
newEmail
New e-mail address
newFirstName
New first name
newLastName
New last name
newRole
New role
newPlanId
ID of new plan (if ID is '{00000000-0000-0000-0000-000000000000}' or empty string or null, Plan will not be changed)

Example SOAP 1.1

Request
POST /ServiceFacade/version_3_2/AccountWebService.asmx HTTP/1.1
Host: sitebuilder.swsoft.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/SiteBuilder/AccountService/v_3_2/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/SiteBuilder/AccountService/v_3_2">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <UpdateAccountById xmlns="http://swsoft.com/SiteBuilder/AccountService/v_3_2">
      <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/SiteBuilder/AccountService/v_3_2" />
  </soap:Body>
</soap:Envelope>

See Also

AccountWebService Web Service | Web services