Use the sync-subscription operation to roll reseller account settings back to values specified in an associated reseller plan. This operation is actual only for reseller accounts that were customized from their reseller plan.
A request XML packet that syncs a subscription with a reseller plan includes the sync-subscription operation node:
<packet version="1.6.3.0">
<reseller>
<sync-subscription>
...
</sync-subscription>
</reseller>
</packet>
The sync-subscription node has the following graphical representation:
It specifies the filtering rule. Data type: ResellerSelectionFilter (reseller.xsd
). For more information on filters, refer to the Available Filters section.
The sync-subscription node of the output XML packet is structured as follows:
plesk_common.xsd
). To sync a subscription with a reseller account, specify its ID or login name:
<packet version="1.6.3.0">
<reseller>
<sync-subscription>
<filter>
<id>9</id>
</filter>
<sync-subscription>
</reseller>
</packet>
The response packet that syncs a reseller account (ID 9) looks as follows:
<packet version="1.6.3.0">
<webspace>
<sync-subscription>
<result>
<status>ok</status>
<filter-id>9</filter-id>
<id>9</id>
</result>
</sync-subscription>
</webspace>
</packet>
To sync multiple reseller accounts, add either reseller IDs or login names to the filtering rule:
<packet version="1.6.3.0">
<reseller>
<sync-subscription>
<filter>
<id>1324</id>
<id>1325</id>
</filter>
</sync-subscription>
</reseller>
</packet>