Request Packet Structure
A request XML packet adding a new domain template to Plesk database includes the add operation node:
<packet version="1.4.1.0">
<domain-template>
<add>
¡
</add>
</domain-template>
</packet>
The add node is presented by type DomainTemplateAddInputType (domain_template.xsd). Its graphical representation is as follows:

- The name node is required. It specifies the name of the domain template. Data type: string.
- The client_id node is optional. It specifies the domain template owner ID. This node is not supported since protocol version 1.6.0.0. Use owner-id node instead.. Data type: integer.
- The owner-id node is optional. It specifies the ID of the domain template owner. Data type: integer. The node is supported since protocol version 1.6.0.0.
- The client-login node is optional. It specifies the domain template owner name. Data type: string. This node is not supported since protocol version 1.6.0.0. Use owner-login node instead.. Data type: integer.
- The owner-login node is optional. It specifies the login name of the domain template owner. Data type: string. The node is supported since protocol version 1.6.0.0.
- The mail node is optional. It specifies a collection of email preferences that will be assigned to a new domain created using this template. Data type: MailPreferences (
plesk_mailname.xsd). See the structure of this node in the Mailing settings section. - The limits node is optional. It specifies a collection of limits that will be set for new domains created using this template. Data type: domainLimits (
plesk_domain.xsd). See the structure of this node in the Limits section. - The log-rotation node is optional. It is used to turn on/off rotation of log files related to a domain created using this template. Data type: LogRotationType (
domain_template.xsd). See the structure of this node in the Log Rotation Settings section. - The preferences node is optional. It is used to specify a collection of preferences for new domains created using this template. Data type: DomainTemplatePreferecesType (
domain_template.xsd). See the structure of this node in the Preferences section. - The hosting node is optional. Specifies physical hosting settings for new domains created using this template. Data type: DomainTemplatePHostingPreferences (
domain_template.xsd). See the structure of this node in the Hosting Settings section. - The performance node is optional. It specifies performance settings for new domains created using this domain template. Data type: DomainPerformanceType (
plesk_domain.xsd). This feature is supported by API RPC 1.4.2.0 and later. See the structure of this node in the Performance Settings section.