42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# File 'lib/lms_graphql/mutations/canvas/create_new_course.rb', line 42
def resolve(account_id:, course_name: nil, course_course_code: nil, course_start_at: nil, course_end_at: nil, course_license: nil, course_is_public: nil, course_is_public_to_auth_users: nil, course_public_syllabus: nil, course_public_syllabus_to_auth: nil, course_public_description: nil, course_allow_student_wiki_edits: nil, course_allow_wiki_comments: nil, course_allow_student_forum_attachments: nil, course_open_enrollment: nil, course_self_enrollment: nil, course_restrict_enrollments_to_course_dates: nil, course_term_id: nil, course_sis_course_id: nil, course_integration_id: nil, course_hide_final_grades: nil, course_apply_assignment_group_weights: nil, course_time_zone: nil, offer: nil, enroll_me: nil, course_default_view: nil, course_syllabus_body: nil, course_grading_standard_id: nil, course_grade_passback_setting: nil, course_course_format: nil, enable_sis_reactivation: nil)
context[:canvas_api].call("CREATE_NEW_COURSE").proxy(
"CREATE_NEW_COURSE",
{
"account_id": account_id
},
{
"course[name]": course_name,
"course[course_code]": course_course_code,
"course[start_at]": course_start_at,
"course[end_at]": course_end_at,
"course[license]": course_license,
"course[is_public]": course_is_public,
"course[is_public_to_auth_users]": course_is_public_to_auth_users,
"course[public_syllabus]": course_public_syllabus,
"course[public_syllabus_to_auth]": course_public_syllabus_to_auth,
"course[public_description]": course_public_description,
"course[allow_student_wiki_edits]": course_allow_student_wiki_edits,
"course[allow_wiki_comments]": ,
"course[allow_student_forum_attachments]": course_allow_student_forum_attachments,
"course[open_enrollment]": course_open_enrollment,
"course[self_enrollment]": course_self_enrollment,
"course[restrict_enrollments_to_course_dates]": course_restrict_enrollments_to_course_dates,
"course[term_id]": course_term_id,
"course[sis_course_id]": course_sis_course_id,
"course[integration_id]": course_integration_id,
"course[hide_final_grades]": course_hide_final_grades,
"course[apply_assignment_group_weights]": course_apply_assignment_group_weights,
"course[time_zone]": course_time_zone,
"offer": offer,
"enroll_me": enroll_me,
"course[default_view]": course_default_view,
"course[syllabus_body]": course_syllabus_body,
"course[grading_standard_id]": course_grading_standard_id,
"course[grade_passback_setting]": course_grade_passback_setting,
"course[course_format]": course_course_format,
"enable_sis_reactivation": enable_sis_reactivation
},
).parsed_response
end
|