Changing Subdomain Settings
The set operation is used to change subdomain hosting settings. You can change all settings of a subdomain at once or specify particular settings.
Request Packet Structure
A request XML packet updating a subdomain hosting settings includes the set operation node:
The set node is presented by the SubdomainSetInputType (
subdomain.xsd). Its graphical representation is as follows:
- The filter node is required. It specifies the filtering rule. For information on filters, refer to the Available Filters section. Data type: SubdomainFilterType (
- The property node is required. It specifies hosting property that is to be set for the subdomain. For information on the properties, refer to the Subdomain Properties section. Data type: SubdomainPropertyType (
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
Response Packet Structure
The set node of the output XML packet is structured as follows:
- The result node is required. It wraps the response retrieved from the server. Data type: ResultFilterType (
- The status node is required. It specifies the execution status of the get operation. Data type: result_status (
common.xsd). Allowed values:
- The errcode node is required if the set operation fails. It returns the error code. Data type: unsignedInt.
- The errtext node is required if the set operation fails. It returns the error message. Data type: string.
- The filter-id node is required if the set operation succeeds. It returns the parameter by which the subdomain was filtered in the request packet. Data type: anySimple.
- The id node is required if the set operation succeeds. It returns the ID of the subdomain which settings are retrieved in the response packet. Data type: id_type (
- 1006 - Permission is denied.
- 1013 - Subdomain does not exist.
- 1015 - Parent site/subdomain is not found.
- 1019 - Invalid property name.
- 1023 - Operation failed.
Changing particular settings of a single subdomain on Linux hosting
This packet changes the home directory for forum.example.com.
Changing settings of multiple subdomains
This packet sets Perl and Miva support for all subdomains on the site example.com.