MergeSection

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

When you specify this operation, iTunes U:

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

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

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

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

<?xml version="1.0" encoding="UTF-8"?>
<ITunesUDocument> 
    <Version>1.1.4</Version>
    <MergeSection>
        <SectionHandle>sectionhandle value</SectionHandle>
        <SectionPath>sectionpath value</SectionPath>
        <MergeByHandle>mergebyhandle value</MergeByHandle>
        <Destructive>destructive value</Destructive>
        <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>
    </MergeSection>
</ITunesUDocument>


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