import { type CreateContentMigrationParams } from "https://deno.land/x/gesso@v0.1.2/types/params.ts";
Properties
The type of the migration. Use the Migrator endpoint to see all available migrators. Default allowed values: canvas_cartridge_importer, common_cartridge_importer, course_copy_importer, zip_file_importer, qti_converter, moodle_converter
Required if uploading a file. This is the first step in uploading a file to the content migration. See the File Upload Documentation for details on the file upload workflow.
The id of a ContentExport to import. This allows you to import content previously exported from Canvas without needing to download and re-upload it.
The question bank to import questions into if not specified in the content package, if both bank id and name are set, id will take precedence.
The id of a module in the target course. This will add all imported items (that can be added to a module) to the given module.
The (1-based) position to insert the imported items into the course (if insert_into_module_id is supplied). If this parameter is omitted, items will be added to the end of the module.
The id of an assignment group in the target course. If provided, all imported assignments will be moved to the given assignment group.
Move anything scheduled for day 'X' to the specified day. (0-Sunday, 1-Monday, 2-Tuesday, 3-Wednesday, 4-Thursday, 5-Friday, 6-Saturday)
If set, perform a selective import instead of importing all content. The migration will identify the contents of the package and then stop in the waiting_for_select workflow state. At this point, use the List items endpoint to enumerate the contents of the package, identifying the copy parameters for the desired content. Then call the Update endpoint and provide these copy parameters to start the import.