20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/lms_graphql/mutations/canvas/update_course_settings.rb', line 20
def resolve(course_id:, allow_student_discussion_topics: nil, allow_student_forum_attachments: nil, allow_student_discussion_editing: nil, allow_student_organized_groups: nil, hide_final_grades: nil, hide_distribution_graphs: nil, lock_all_announcements: nil, restrict_student_past_view: nil, restrict_student_future_view: nil, show_announcements_on_home_page: nil, home_page_announcement_limit: nil)
ctx[:canvas_api].proxy(
"UPDATE_COURSE_SETTINGS",
{
"course_id": course_id,
"allow_student_discussion_topics": allow_student_discussion_topics,
"allow_student_forum_attachments": allow_student_forum_attachments,
"allow_student_discussion_editing": allow_student_discussion_editing,
"allow_student_organized_groups": allow_student_organized_groups,
"hide_final_grades": hide_final_grades,
"hide_distribution_graphs": hide_distribution_graphs,
"lock_all_announcements": lock_all_announcements,
"restrict_student_past_view": restrict_student_past_view,
"restrict_student_future_view": restrict_student_future_view,
"show_announcements_on_home_page": show_announcements_on_home_page,
"home_page_announcement_limit": home_page_announcement_limit },
nil,
).parsed_response
end
|