# Insert a Site

To insert a site, your `insertXml` must include the following properties:

`TYPE` | The type of item to insert. To insert a site, specify `SITE`.
`TITLE` | The title to use for the site.
`URL` | The parent relative URL of the site.

You must then specify either (`SITEID` and `SITECOLLECTIONURL`) or (`INSERTFROMPATH` and `SITEURL`):

`INSERTFROMPATH` | To insert a site by path, set this to `TRUE`.
`SITECOLLECTIONURL` | The absolute URL of the site collection into which you want to insert the site.
`SITEID` | The GUID of the parent site.
`SITEURL` | The absolute URL of the parent site.

The following properties are optional:

`DESCRIPTION` | A description of the site.

For example, the value of your `insertXML` action parameter might look like this:

    <insertXML>
      <insert>
        <reference>TEST_SITE</reference>
        <property name="TYPE" value="SITE"/>
        <property name="TITLE" value="My New Site"/>
        <property name="URL" value="MyNewSite"/>
        <property name="SITECOLLECTIONURL" value="http://sharepoint/SiteCollection/"/>
        <property name="SITEID" value="AF1F1E11526FFA45"/>
        <property name="DESCRIPTION" value="My Inserted Site"/>
      </insert>
    </insertXML>

To insert a site by path, your XML might look like this:

    <insertXML>
      <insert>
        <reference>TEST_SITE</reference>
        <property name="TYPE" value="SITE"/>
        <property name="TITLE" value="My New Site"/>
        <property name="URL" value="MyNewSite"/>
        <property name="SITEURL" value="http://sharepoint/SiteCollection/"/>
        <property name="INSERTFROMPATH" value="TRUE"/>
        <property name="DESCRIPTION" value="My Inserted Site"/>
      </insert>
    </insertXML>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm