MergeDivision

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

When you specify this operation, iTunes U:

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

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

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

You specify the following entities with the MergeDivision 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 MergeDivision:

<?xml version="1.0" encoding="UTF-8"?>
<ITunesUDocument>
    <Version>1.1.4</Version>
    <MergeDivision>
        <DivisionHandle>divisionhandle value</DivisionHandle>
        <DivisionPath>divisionpath value</DivisionPath>
        <MergeByHandle>mergebyhandle value</MergeByHandle>
        <Destructive>destructive value</Destructive>
        <Division>
            <Name>name value</Name>
            <ShortName>shortname value</ShortName>
            <Identifier>identifier value</Identifier>
            <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>
                    <CourseType>coursetype value</CourseType>
                    <Group>
                            <Name>name value</Name>
                            <Handle>handle value</Handle>
                            <Track>
                                <Name>name value</Name>
                                <Handle>handle value</Handle>
                                <Kind>kind value</Kind>
                                <DiscNumber>discnumber value</DiscNumber>
                                <DurationMilliseconds>
                                durationmilliseconds value
                                </DurationMilliseconds>
                                <AlbumName>albumname value</AlbumName>
                                <ArtistName>artistname value</ArtistName>
                                <DownloadURL>downloadurl value</DownloadURL>
                            </Track>
                            <Permission>
                                <Credential>credential value</Credential>
                                <Access>access value</Access>
                            </Permission>
                    </Group>
                </Course>
            </Section>
            <ThemeHandle>themehandle value</ThemeHandle>
        </Division>
    </MergeDivision>
</ITunesUDocument>


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