PlanWebService.UpdatePlan Method 

Changes parameters of the plan specified by plan ID.

[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
);

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. (see 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

Example SOAP 1.1

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

See Also

PlanWebService Web Service | Web services