The set operation is used to update Plesk customer account settings.
A request XML packet setting various settings for the specified customer account includes the set operation node:
<packet version="1.6.3.0">
<customer>
<set>
...
</set>
</customer>
</packet>
The set node does not have a separate type, it is nested within the ClientTypeRequest complex type (client_input.xsd
). The set node has the following graphics representation:
(client_input.xsd
). For more information on filters, refer to the Available Filters section.plesk_client.xsd
). See the structure of this node in topic General Customer Account Settings. The set node of the response packet is structured as follows:
common.xsd
).You can change a customer GUID using the following packet:
<packet version="1.6.7.0">
<customer>
<set>
<filter>
<login>MyClient</login>
</filter>
<values>
<gen_info>
<guid/>
</gen_info>
</values>
</set>
</customer>
</packet>
Response:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.7.0">
<customer>
<set>
<result>
<status>ok</status>
<filter-id>MyClient/filter-id>
<id>4</id>
</result>
</set>
</customer>
</packet>
To change GUIDs of all customers, use the following packet:
<packet version="1.6.7.0">
<customer>
<set>
<filter/>
<values>
<gen_info>
<guid/>
</gen_info>
</values>
</set>
</customer>
</packet>
Response:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.7.0">
<customer>
<set>
<result>
<status>ok</status>
<filter-id>3</filter-id>
<id>3</id>
</result>
<result>
<status>ok</status>
<filter-id>4</filter-id>
<id>4</id>
</result>
</set>
</customer>
</packet>