Renaming Subdomain

The rename operation is used to change a subdomain name.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet renaming a subdomain includes the rename operation node:

<packet>
<subdomain>
<rename>
...
</rename>
</subdomain>
</packet>

 

The rename node is presented by the SubdomainRenameInputType (subdomain.xsd). Its graphical representation is as follows:

SubdomainRenameInputType

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The rename node of the output XML packet is structured as follows:

SubdomainRenameOutputType

 

Possible Errors

 

 

Samples

To rename a subdomain with ID 3 to forum:

<packet version="1.5.2.0">
<subdomain>
<rename>
   <id>3</id>
   <name>forum</name>
</rename>
</subdomain>
</packet>

Response:

<packet version="1.5.2.0">
<subdomain>
   <rename>
      <result>
         <status>ok</status>
      </result>
   </rename>
</subdomain>
</packet>