Adding an Application to a Subscription

The add-package operation is used to add applications to subscriptions.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet adding a new application to a subscription includes the add-package operation node:

<packet>
<webspace>
   <add-package>
   ...
   </add-package>
</webspace>
</packet>

 

The add-package node is presented by type WebspaceApplicationInput (webspace.xsd). Its graphical representation is as follows:

WebspaceApplicationInput-add

 

Response Packet Structure

The add-package node of the response packet is structured as follows:

WebspaceApplicationOutput-add

 

Samples

A packet that adds an application package WordPress to the subscription with ID 1234 looks as follows:

<packet>
<webspace>
<add-package>
   <filter>
      <id>1234</id>
   </filter>
   <package>
	   <name>name</name>
	   <value>WordPress</value>
	</package>
</add-package>
</webspace>
</packet>

Response:

<packet>
<webspace>
<add-package>
   <result>
      <status>ok</status>
      <filter-id>1234</filter-id>
      <id>1234</id>
   </result>
</add-package>
</webspace>
</packet>