Setting Customer Account Properties

The set operation is used to update Plesk customer account settings.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

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:

 

Response Packet Structure

The set node of the response packet is structured as follows:

 

Samples

Changing a customer GUID

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>
Changing GUIDs of all customers

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>