SWsoft SiteBuilder Integration API v3.2 Reference

PlanWebService.UpdatePlan Method 

 [This is preliminary documentation and subject to change.]

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

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 templates IDs
pagesetsIds
New list of Page Sets IDs
modulesIds
New list of modules IDs
hostsIds
New list of hosts IDs
families
List of Site Families IDs
defaultFamily
Default Site Family ID

Example SOAP 1.1

Request
POST /ServiceFacade/version_3_2/PlanWebService.asmx HTTP/1.1
Host: sitebuilder.swsoft.com
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