Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
public
/
doc
/
api
/
Filename :
blueprint_courses.json
back
Copy
{ "apiVersion": "1.0", "swaggerVersion": "1.2", "basePath": "https://canvas.managedclass.com/api", "resourcePath": "/blueprint_courses", "produces": [ "application/json" ], "apis": [ { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}", "description": "Using 'default' as the template_id should suffice for the current implmentation (as there should be only one template per course).\nHowever, using specific template ids may become necessary in the future", "operations": [ { "method": "GET", "summary": "Get blueprint information", "notes": "Using 'default' as the template_id should suffice for the current implmentation (as there should be only one template per course).\nHowever, using specific template ids may become necessary in the future", "nickname": "get_blueprint_information", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "BlueprintTemplate" } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/associated_courses", "description": "Returns a list of courses that are configured to receive updates from this blueprint", "operations": [ { "method": "GET", "summary": "Get associated course information", "notes": "Returns a list of courses that are configured to receive updates from this blueprint", "nickname": "get_associated_course_information", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "Course" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/update_associations", "description": "Send a list of course ids to add or remove new associations for the template.\nCannot add courses that do not belong to the blueprint course's account. Also cannot add\nother blueprint courses or courses that already have an association with another blueprint course.\n\nAfter associating new courses, {api:MasterCourses::MasterTemplatesController#queue_migration start a sync} to populate their contents from the blueprint.", "operations": [ { "method": "PUT", "summary": "Update associated courses", "notes": "Send a list of course ids to add or remove new associations for the template.\nCannot add courses that do not belong to the blueprint course's account. Also cannot add\nother blueprint courses or courses that already have an association with another blueprint course.\n\nAfter associating new courses, {api:MasterCourses::MasterTemplatesController#queue_migration start a sync} to populate their contents from the blueprint.", "nickname": "update_associated_courses", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "form", "name": "course_ids_to_add", "description": "Courses to add as associated courses", "type": "Array", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "course_ids_to_remove", "description": "Courses to remove as associated courses", "type": "Array", "format": null, "required": false, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "void" } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/migrations", "description": "Begins a migration to push recently updated content to all associated courses.\nOnly one migration can be running at a time.", "operations": [ { "method": "POST", "summary": "Begin a migration to push to associated courses", "notes": "Begins a migration to push recently updated content to all associated courses.\nOnly one migration can be running at a time.", "nickname": "begin_migration_to_push_to_associated_courses", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "form", "name": "comment", "description": "An optional comment to be included in the sync history.", "type": "string", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "send_notification", "description": "Send a notification to the calling user when the sync completes.", "type": "boolean", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "copy_settings", "description": "Whether course settings should be copied over to associated courses.\nDefaults to true for newly associated courses.", "type": "boolean", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "publish_after_initial_sync", "description": "If set, newly associated courses will be automatically published after the sync completes", "type": "boolean", "format": null, "required": false, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "BlueprintMigration" } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/restrict_item", "description": "If a blueprint course object is restricted, editing will be limited for copies in associated courses.", "operations": [ { "method": "PUT", "summary": "Set or remove restrictions on a blueprint course object", "notes": "If a blueprint course object is restricted, editing will be limited for copies in associated courses.", "nickname": "set_or_remove_restrictions_on_blueprint_course_object", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "form", "name": "content_type", "description": "[String, \"assignment\"|\"attachment\"|\"discussion_topic\"|\"external_tool\"|\"lti-quiz\"|\"quiz\"|\"wiki_page\"]\nThe type of the object.", "type": "string", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "content_id", "description": "The ID of the object.", "type": "integer", "format": "int64", "required": false, "deprecated": false }, { "paramType": "form", "name": "restricted", "description": "Whether to apply restrictions.", "type": "boolean", "format": null, "required": false, "deprecated": false }, { "paramType": "form", "name": "restrictions", "description": "(Optional) If the object is restricted, this specifies a set of restrictions. If not specified,\nthe course-level restrictions will be used. See {api:CoursesController#update Course API update documentation}", "type": "BlueprintRestriction", "format": null, "required": false, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "void" } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/unsynced_changes", "description": "Retrieve a list of learning objects that have changed since the last blueprint sync operation.\nIf no syncs have been completed, a ChangeRecord with a change_type of +initial_sync+ is returned.", "operations": [ { "method": "GET", "summary": "Get unsynced changes", "notes": "Retrieve a list of learning objects that have changed since the last blueprint sync operation.\nIf no syncs have been completed, a ChangeRecord with a change_type of +initial_sync+ is returned.", "nickname": "get_unsynced_changes", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "ChangeRecord" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/migrations", "description": "Shows a paginated list of migrations for the template, starting with the most recent. This endpoint can be called on a\nblueprint course. See also {api:MasterCourses::MasterTemplatesController#imports_index the associated course side}.", "operations": [ { "method": "GET", "summary": "List blueprint migrations", "notes": "Shows a paginated list of migrations for the template, starting with the most recent. This endpoint can be called on a\nblueprint course. See also {api:MasterCourses::MasterTemplatesController#imports_index the associated course side}.", "nickname": "list_blueprint_migrations", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "BlueprintMigration" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/migrations/{id}", "description": "Shows the status of a migration. This endpoint can be called on a blueprint course. See also\n{api:MasterCourses::MasterTemplatesController#imports_show the associated course side}.", "operations": [ { "method": "GET", "summary": "Show a blueprint migration", "notes": "Shows the status of a migration. This endpoint can be called on a blueprint course. See also\n{api:MasterCourses::MasterTemplatesController#imports_show the associated course side}.", "nickname": "show_blueprint_migration", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "BlueprintMigration" } ] }, { "path": "/v1/courses/{course_id}/blueprint_templates/{template_id}/migrations/{id}/details", "description": "Show the changes that were propagated in a blueprint migration. This endpoint can be called on a\nblueprint course. See also {api:MasterCourses::MasterTemplatesController#import_details the associated course side}.", "operations": [ { "method": "GET", "summary": "Get migration details", "notes": "Show the changes that were propagated in a blueprint migration. This endpoint can be called on a\nblueprint course. See also {api:MasterCourses::MasterTemplatesController#import_details the associated course side}.", "nickname": "get_migration_details", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "template_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "ChangeRecord" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_subscriptions", "description": "Returns a list of blueprint subscriptions for the given course. (Currently a course may have no more than one.)", "operations": [ { "method": "GET", "summary": "List blueprint subscriptions", "notes": "Returns a list of blueprint subscriptions for the given course. (Currently a course may have no more than one.)", "nickname": "list_blueprint_subscriptions", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "BlueprintSubscription" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_subscriptions/{subscription_id}/migrations", "description": "Shows a paginated list of migrations imported into a course associated with a blueprint, starting with the most recent. See also\n{api:MasterCourses::MasterTemplatesController#migrations_index the blueprint course side}.\n\nUse 'default' as the subscription_id to use the currently active blueprint subscription.", "operations": [ { "method": "GET", "summary": "List blueprint imports", "notes": "Shows a paginated list of migrations imported into a course associated with a blueprint, starting with the most recent. See also\n{api:MasterCourses::MasterTemplatesController#migrations_index the blueprint course side}.\n\nUse 'default' as the subscription_id to use the currently active blueprint subscription.", "nickname": "list_blueprint_imports", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "subscription_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "BlueprintMigration" } } ] }, { "path": "/v1/courses/{course_id}/blueprint_subscriptions/{subscription_id}/migrations/{id}", "description": "Shows the status of an import into a course associated with a blueprint. See also\n{api:MasterCourses::MasterTemplatesController#migrations_show the blueprint course side}.", "operations": [ { "method": "GET", "summary": "Show a blueprint import", "notes": "Shows the status of an import into a course associated with a blueprint. See also\n{api:MasterCourses::MasterTemplatesController#migrations_show the blueprint course side}.", "nickname": "show_blueprint_import", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "subscription_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "BlueprintMigration" } ] }, { "path": "/v1/courses/{course_id}/blueprint_subscriptions/{subscription_id}/migrations/{id}/details", "description": "Show the changes that were propagated to a course associated with a blueprint. See also\n{api:MasterCourses::MasterTemplatesController#migration_details the blueprint course side}.", "operations": [ { "method": "GET", "summary": "Get import details", "notes": "Show the changes that were propagated to a course associated with a blueprint. See also\n{api:MasterCourses::MasterTemplatesController#migration_details the blueprint course side}.", "nickname": "get_import_details", "parameters": [ { "paramType": "path", "name": "course_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "subscription_id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false }, { "paramType": "path", "name": "id", "description": "ID", "type": "string", "format": null, "required": true, "deprecated": false } ], "response_fields": [], "deprecated": false, "deprecation_description": "", "type": "array", "items": { "$ref": "ChangeRecord" } } ] } ], "models": { "BlueprintTemplate": { "id": "BlueprintTemplate", "description": "", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "id": { "description": "The ID of the template.", "example": 1, "type": "integer", "format": "int64" }, "course_id": { "description": "The ID of the Course the template belongs to.", "example": 2, "type": "integer", "format": "int64" }, "last_export_completed_at": { "description": "Time when the last export was completed", "example": "2013-08-28T23:59:00-06:00", "type": "datetime" }, "associated_course_count": { "description": "Number of associated courses for the template", "example": 3, "type": "integer" }, "latest_migration": { "description": "Details of the latest migration", "$ref": "BlueprintMigration" } } }, "BlueprintMigration": { "id": "BlueprintMigration", "description": "", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "id": { "description": "The ID of the migration.", "example": 1, "type": "integer", "format": "int64" }, "template_id": { "description": "The ID of the template the migration belongs to. Only present when querying a blueprint course.", "example": 2, "type": "integer", "format": "int64" }, "subscription_id": { "description": "The ID of the associated course's blueprint subscription. Only present when querying a course associated with a blueprint.", "example": 101, "type": "integer", "format": "int64" }, "user_id": { "description": "The ID of the user who queued the migration.", "example": 3, "type": "integer", "format": "int64" }, "workflow_state": { "description": "Current state of the content migration: queued, exporting, imports_queued, completed, exports_failed, imports_failed", "example": "running", "type": "string" }, "created_at": { "description": "Time when the migration was queued", "example": "2013-08-28T23:59:00-06:00", "type": "datetime" }, "exports_started_at": { "description": "Time when the exports begun", "example": "2013-08-28T23:59:00-06:00", "type": "datetime" }, "imports_queued_at": { "description": "Time when the exports were completed and imports were queued", "example": "2013-08-28T23:59:00-06:00", "type": "datetime" }, "imports_completed_at": { "description": "Time when the imports were completed", "example": "2013-08-28T23:59:00-06:00", "type": "datetime" }, "comment": { "description": "User-specified comment describing changes made in this operation", "example": "Fixed spelling in question 3 of midterm exam", "type": "string" } } }, "BlueprintRestriction": { "id": "BlueprintRestriction", "description": "A set of restrictions on editing for copied objects in associated courses", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "content": { "description": "Restriction on main content (e.g. title, description).", "example": true, "type": "boolean" }, "points": { "description": "Restriction on points possible for assignments and graded learning objects", "example": true, "type": "boolean" }, "due_dates": { "description": "Restriction on due dates for assignments and graded learning objects", "example": false, "type": "boolean" }, "availability_dates": { "description": "Restriction on availability dates for an object", "example": true, "type": "boolean" } } }, "ChangeRecord": { "id": "ChangeRecord", "description": "Describes a learning object change propagated to associated courses from a blueprint course", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "asset_id": { "description": "The ID of the learning object that was changed in the blueprint course.", "example": 2, "type": "integer", "format": "int64" }, "asset_type": { "description": "The type of the learning object that was changed in the blueprint course. One of 'assignment', 'attachment', 'discussion_topic', 'external_tool', 'quiz', 'wiki_page', 'syllabus', or 'settings'. For 'syllabus' or 'settings', the asset_id is the course id.", "example": "assignment", "type": "string" }, "asset_name": { "description": "The name of the learning object that was changed in the blueprint course.", "example": "Some Assignment", "type": "string" }, "change_type": { "description": "The type of change; one of 'created', 'updated', 'deleted'", "example": "created", "type": "string" }, "html_url": { "description": "The URL of the changed object", "example": "https://canvas.example.com/courses/101/assignments/2", "type": "string" }, "locked": { "description": "Whether the object is locked in the blueprint", "example": false, "type": "boolean" }, "exceptions": { "description": "A list of ExceptionRecords for linked courses that did not receive this update.", "example": [ { "course_id": 101, "conflicting_changes": [ "points" ] } ], "type": "array", "items": { "type": "object" } } } }, "ExceptionRecord": { "id": "ExceptionRecord", "description": "Lists associated courses that did not receive a change propagated from a blueprint", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "course_id": { "description": "The ID of the associated course", "example": 101, "type": "integer", "format": "int64" }, "conflicting_changes": { "description": "A list of change classes in the associated course's copy of the item that prevented a blueprint change from being applied. One or more of ['content', 'points', 'due_dates', 'availability_dates'].", "example": [ "points" ], "type": "array", "items": { "type": "object" } } } }, "BlueprintSubscription": { "id": "BlueprintSubscription", "description": "Associates a course with a blueprint", "required": [], "deprecated": false, "deprecation_description": null, "properties": { "id": { "description": "The ID of the blueprint course subscription", "example": 101, "type": "integer", "format": "int64" }, "template_id": { "description": "The ID of the blueprint template the associated course is subscribed to", "example": 1, "type": "integer", "format": "int64" }, "blueprint_course": { "description": "The blueprint course subscribed to", "type": "object", "example": { "id": 2, "name": "Biology 100 Blueprint", "course_code": "BIOL 100 BP", "term_name": "Default term" } } } } } }