For example, to get form for adding VHost item make a request using POST
method for /rest/adhoc/vhost-man@domain.com
sending the following content (request requires authentication using Basic HTTP Authentication):
<command> <node>comp-repo-item-add</node> </command>
Below is example result for request presented above:
<command> <jid>vhost-man@domain.com</jid> <node>comp-repo-item-add</node> <fields> <item> <var>Domain name</var> <value/> </item> <item> <var>Enabled</var> <type>boolean</type> <value>true</value> </item> <item> <var>Anonymous enabled</var> <type>boolean</type> <value>true</value> </item> <item> <var>In-band registration</var> <type>boolean</type> <value>true</value> </item> <item> <var>TLS</var> <type>fixed</type> <value>This installation forces VHost to require TLS. If you need to use unencrypted connections set &apos;vhost-tls-required&apos; property to &apos;false&apos; in the installation configuration file </value> </item> <item> <var>Max users</var> <value>0</value> </item> … </fields> <instructions>âNOTE: Options without value set will use configuration defined in 'DEFAULT' VHostâ</instructions> </command>