MergeSite

Specifies the site information you want to update in your iTunes U site. iTunes U merges the site information specified in your document with the site information in your iTunes U site.

When you specify this operation, iTunes U:

  1. Updates existing site items with the information you specify.

  2. Creates new items in the site for any entities you specify that do not already exist in the destination site, and, if the Destructive entity is set to true, deletes any existing items in the destination site for entities you do not specify.

  3. Merges information in the site for any entities you specify that already exist in the destination site.

You specify the following entities with the MergeSite operation:

Notes:

! icon

Warning: Web Services does not provide an undo operation. Be careful when using the Destructive entity. If misused, you can destroy your entire iTunes U site structure.

The following is an example of an iTunes U Web Services document using MergeSite:

<?xml version="1.0" encoding="UTF-8"?>
<ITunesUDocument>
    <Version>1.1.4</Version>
    <MergeSite>
        <SiteHandle>sitehandle value</SiteHandle>
        <MergeByHandle>mergebyhandle value</MergeByHandle>
        <Destructive>destructive value</Destructive>
        <Site>
            <Name>name value</Name>
            <Handle>handle value</Handle>
            <AllowSubscription>allowsubscription value</AllowSubscription>
            <Permission>
                <Credential>credential value</Credential>
                <Access>access value</Access>
            </Permission>
            <Section>
                <Name>name value</Name>
                <Handle>handle value</Handle>
                <Course>
                    <Name>name value</Name>
                </Course>
            </Section>
            <Templates>
                <Name>name value</Name>
                <Handle>handle value</Handle>
                <Course>course value</Course>
            </Templates>
            <ThemeHandle>themehandle value</ThemeHandle>
        </Site>
    </MergeSite>
</ITunesUDocument>


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-11-04)