The update operation lets you change settings of specified virtual directories.
Request Packet Structure
A request XML packet that changes a virtual directory's settings should include the update operation node:
The update node is presented by type UpdateVDirInputType (
virtdir.xsd). Its graphical representation is as follows:
- The site-id node is required. It holds the identifier of the site that owns the virtual directory. Data type: integer.
- The subdomain-id node is required. it holds the identifier of the subdomain that owns the virtual directory. Data type: integer.
- The name node is required. It holds the name of the virtual directory. Data type: VDirPath (
- The properties node is required. It holds a collection of virtual site settings. Data type: VDirProperties (
virtdir.xsd). To see the structure of this node, refer to the Virtual Directory Properties section.
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
Response Packet Structure
The update node of the output XML packet is structured as follows:
- The result node is required. It wraps the result of the create operation. Data type: resultType (
- The status node is required. Specifies the execution status of the create operation. Data type: string. Allowed values: ok|error.
- The errcode node is optional. Is required if the create operation fails. Returns the error code. Data type: unsignedInt.
- The errtext node is optional. Can be returned if the create operation fails. Returns the error message. Data type: string.
The following request packet updates a virtual directory on the specified site: