Class: LMS::GraphQL::Mutations::Canvas::BeginMigrationToPushToAssociatedCourse

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/begin_migration_to_push_to_associated_courses.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, template_id:, comment: nil, send_notification: nil, copy_settings: nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/lms/graphql/mutations/canvas/begin_migration_to_push_to_associated_courses.rb', line 14

def resolve(course_id:, template_id:, comment: nil, send_notification: nil, copy_settings: nil)
  ctx[:canvas_api].proxy(
    "BEGIN_MIGRATION_TO_PUSH_TO_ASSOCIATED_COURSES",
    {
      "course_id": course_id,
      "template_id": template_id,
      "comment": comment,
      "send_notification": send_notification,
      "copy_settings": copy_settings              },
    nil,
  ).parsed_response
end