Import/Export
To obtain internal group uuid, please refer to Mapping
Import data from course A to course B
POST /hosts/{hostId}/groups/{groupId}/import/data
This API allows to import data from group (course) A to group (course) B.
The {groupId} param of the route specifies the target group (course B).
Required user scope: super-mod
Query Parameters
Name | Value |
|---|---|
| uuid of the source group (group A) from which to take the data |
| if set to |
| if set to |
| if set to |
Example:/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups/910aac35-d911-4e4b-bfbb-3ba2f2bd16ff/import/data?source_group_id=dc7c138e-36e9-4041-ba57-3a7068af2cb2&preferences=1&cta=1
Response
200
{ "result": "ok"}
400
{ "message": "Bad request", "statusCode": 400}
Bulk duplicate data of a course to multiple courses
POST /hosts/{hostId}/groups/{groupId}/bulk_duplicate/data
This API allows to perform bulk operation of duplicating the data of a source group (course) specified by the {groupId} to multiple groups (courses). This bulk operation will create new groups and threads as needed, for the duplication.
Required user scope: admin
Query Parameters
Name | Value |
|---|---|
| if set to |
| if set to |
Example:
/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups/910aac35-d911-4e4b-bfbb-3ba2f2bd16ff/bulk_duplicate/data?preferences=1&cta=1
Body
Array of target courses (groups):
{ "targetGroups": [ { "group_id": "23456", "title": "Course B Title", "url": "https://canvas.instructure.com/courses/23456", "description": "Optional Description of course B" }, { "group_id": "3456", "title": "Course C Title", "url": "https://canvas.instructure.com/courses/3456", "description": "Optional Description of course C" } ]}
Each targe group object has the following properties
Name | Type | Description |
|---|---|---|
| string | the host/LMS course id to where the data should be copied to |
| string | the url of the course in the host/LMS system |
| string | the course title |
| string | (optional) course description |
Response
200
{ "result": "ok"}
400
{ "message": "Bad request", "statusCode": 400}