PlanWebService.UpdatePlan Method 

Updates a plan.

[C#]
public void UpdatePlan(
   string planId,
   string name,
   string description,
   int maxPagesNumber,
   int maxPagesRootLevel,
   int maxPagesLevel,
   int maxSitesNumber,
   int maxAccountsNumber,
   int maxHostsNumber,
   int trialLifeTime,
   LifeTimeType trialLifeType,
   string[] templatesIds,
   string[] pagesetsIds,
   string[] modulesIds,
   string[] hostsIds,
   string[] families,
   string defaultFamily,
   bool isPublishingSettingsEditable,
   bool isFtpPublishAvailable,
   bool isXcopyPublishAvailable,
   bool isVpsPublishAvailable,
   bool isAdditionalSiteContentAllowed,
   string additionalSiteContent,
   bool isUserManagementAllowed,
   bool isSiteManagementAllowed
);

Parameters

planId
Plan ID.
name
New plan name.
description
New plan description.
maxPagesNumber
New limit for maximum number of pages.
maxPagesRootLevel
New limit for maximum number of root level pages.
maxPagesLevel
New limit for maximum number of levels.
maxSitesNumber
New limit for maximum number of sites.
maxAccountsNumber
New limit for maximum number of accounts.
maxHostsNumber
New limit for maximum number of hosts.
trialLifeTime
New limit for trial sites life-time.
trialLifeType
Type of life-time LifeTimeType.
templatesIds
New list of template IDs.
pagesetsIds
New list of page set IDs.
modulesIds
New list of module IDs.
hostsIds
New list of host IDs.
families
List of site family IDs.
defaultFamily
Default site family ID.
isPublishingSettingsEditable
If true, editing of publishing settings is allowed.
isFtpPublishAvailable
If true, FTP publish mode is allowed.
isXcopyPublishAvailable
If true, XCopy publish mode is allowed.
isVpsPublishAvailable
If true, VPS publish mode is allowed.
isAdditionalSiteContentAllowed
If true , resellers are allowed to place additional content specified by additionalSiteContent on sites of their users.
additionalSiteContent
Additional site content (see isAdditionalSiteContentAllowed).
isUserManagementAllowed
If true, the user management is allowed.
isSiteManagementAllowed
If true, the site management is allowed.

Example SOAP 1.1

Request
POST /wsb/ServiceFacade/4.0/PlanWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/4.0/PlanService/UpdatePlan"

<?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/4.0/PlanService">
      <SsoSessionId>string</SsoSessionId>
      <SsoId>string</SsoId>
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <UpdatePlan xmlns="http://swsoft.com/webservices/sb/4.0/PlanService">
      <planId>string</planId>
      <name>string</name>
      <description>string</description>
      <maxPagesNumber>int</maxPagesNumber>
      <maxPagesRootLevel>int</maxPagesRootLevel>
      <maxPagesLevel>int</maxPagesLevel>
      <maxSitesNumber>int</maxSitesNumber>
      <maxAccountsNumber>int</maxAccountsNumber>
      <maxHostsNumber>int</maxHostsNumber>
      <trialLifeTime>int</trialLifeTime>
      <trialLifeType>Days or Hours</trialLifeType>
      <templatesIds>
        <string>string</string>
        <string>string</string>
      </templatesIds>
      <pagesetsIds>
        <string>string</string>
        <string>string</string>
      </pagesetsIds>
      <modulesIds>
        <string>string</string>
        <string>string</string>
      </modulesIds>
      <hostsIds>
        <string>string</string>
        <string>string</string>
      </hostsIds>
      <families>
        <string>string</string>
        <string>string</string>
      </families>
      <defaultFamily>string</defaultFamily>
      <isPublishingSettingsEditable>boolean</isPublishingSettingsEditable>
      <isFtpPublishAvailable>boolean</isFtpPublishAvailable>
      <isXcopyPublishAvailable>boolean</isXcopyPublishAvailable>
      <isVpsPublishAvailable>boolean</isVpsPublishAvailable>
      <isAdditionalSiteContentAllowed>boolean</isAdditionalSiteContentAllowed>
      <additionalSiteContent>string</additionalSiteContent>
      <isUserManagementAllowed>boolean</isUserManagementAllowed>
      <isSiteManagementAllowed>boolean</isSiteManagementAllowed>
    </UpdatePlan>
  </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>
    <UpdatePlanResponse xmlns="http://swsoft.com/webservices/sb/4.0/PlanService" />
  </soap:Body>
</soap:Envelope>

See Also

PlanWebService Web Service | Web services