MergeCourse

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

When you specify this operation, iTunes U:

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

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

  3. Merges information in the course for any Group or Permission entities you specify that already exist in the destination course.

Note: You cannot change a course type from simple to feed or from feed to simple. To change from one course type to another, delete the existing course and create a new course.

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

<?xml version="1.0" encoding="UTF-8"?>
<ITunesUDocument>
    <Version>1.1.4</Version>
    <MergeCourse>
        <CourseHandle>coursehandle value</CourseHandle>
        <CoursePath>coursepath value</CoursePath>
        <MergeByHandle>mergebyhandle value</MergeByHandle>
        <Destructive>destructive value</Destructive>
        <Course>
           <Name>name value</Name>
           <CourseType>coursetype value</CourseType>
           <ShortName>shortname value</ShortName>
           <Identifier>identifier value</Identifier>
           <Instructor>instructor value</Instructor>
           <Description>description value</Description>
           <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>
           <AllowSubscription>allowsubscription value</AllowSubscription>
        </Course>
    </MergeCourse>
</ITunesUDocument>


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