Blueprint Courses
Configure blueprint courses
A BlueprintTemplate object looks like:
A BlueprintMigration object looks like:
A BlueprintRestriction object looks like:
A ChangeRecord object looks like:
An ExceptionRecord object looks like:
A BlueprintSubscription object looks like:
GET /api/v1/courses/:course_id/blueprint_templates/:template_id
GET /api/v1/courses/:course_id/blueprint_templates/:template_id
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id
Using ‘default’ as the template_id should suffice for the current implmentation (as there should be only one template per course). However, using specific template ids may become necessary in the future
Example Request:
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/associated_courses
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/associated_courses
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id/associated_courses
Returns a list of courses that are configured to receive updates from this blueprint
Example Request:
PUT /api/v1/courses/:course_id/blueprint_templates/:template_id/update_associations
PUT /api/v1/courses/:course_id/blueprint_templates/:template_id/update_associations
Scope: url:PUT|/api/v1/courses/:course_id/blueprint_templates/:template_id/update_associations
Send a list of course ids to add or remove new associations for the template. Cannot add courses that do not belong to the blueprint course’s account. Also cannot add other blueprint courses or courses that already have an association with another blueprint course.
Request Parameters:
course_ids_to_add
Array
Courses to add as associated courses
course_ids_to_remove
Array
Courses to remove as associated courses
Example Request:
POST /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
POST /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
Scope: url:POST|/api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
Begins a migration to push recently updated content to all associated courses. Only one migration can be running at a time.
Request Parameters:
comment
string
An optional comment to be included in the sync history.
send_notification
boolean
Send a notification to the calling user when the sync completes.
copy_settings
boolean
Whether course settings should be copied over to associated courses. Defaults to true for newly associated courses.
send_item_notifications
boolean
By default, new-item notifications are suppressed in blueprint syncs. If this option is set, teachers and students may receive notifications for items such as announcements and assignments that are created in associated courses (subject to the usual notification settings). This option requires the Blueprint Item Notifications feature to be enabled.
publish_after_initial_sync
boolean
If set, newly associated courses will be automatically published after the sync completes
Example Request:
PUT /api/v1/courses/:course_id/blueprint_templates/:template_id/restrict_item
PUT /api/v1/courses/:course_id/blueprint_templates/:template_id/restrict_item
Scope: url:PUT|/api/v1/courses/:course_id/blueprint_templates/:template_id/restrict_item
If a blueprint course object is restricted, editing will be limited for copies in associated courses.
Request Parameters:
content_type
string
String, “assignment”
content_id
integer
The ID of the object.
restricted
boolean
Whether to apply restrictions.
restrictions
BlueprintRestriction
Example Request:
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/unsynced_changes
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/unsynced_changes
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id/unsynced_changes
Retrieve a list of learning objects that have changed since the last blueprint sync operation. If no syncs have been completed, a ChangeRecord with a change_type of initial_sync
is returned.
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id/migrations
Example Request:
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id
Example Request:
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id/details
GET /api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id/details
Scope: url:GET|/api/v1/courses/:course_id/blueprint_templates/:template_id/migrations/:id/details
Example Request:
GET /api/v1/courses/:course_id/blueprint_subscriptions
GET /api/v1/courses/:course_id/blueprint_subscriptions
Scope: url:GET|/api/v1/courses/:course_id/blueprint_subscriptions
Returns a list of blueprint subscriptions for the given course. (Currently a course may have no more than one.)
Example Request:
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations
Scope: url:GET|/api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations
Use ‘default’ as the subscription_id to use the currently active blueprint subscription.
Example Request:
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id
Scope: url:GET|/api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id
Example Request:
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id/details
GET /api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id/details
Scope: url:GET|/api/v1/courses/:course_id/blueprint_subscriptions/:subscription_id/migrations/:id/details
Example Request:
Last updated
Was this helpful?