17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/lms_graphql/mutations/canvas/set_or_remove_restrictions_on_blueprint_course_object.rb', line 17
def resolve(course_id:, template_id:, content_type: nil, content_id: nil, restricted: nil, restrictions: nil)
context[:canvas_api].call("SET_OR_REMOVE_RESTRICTIONS_ON_BLUEPRINT_COURSE_OBJECT").proxy(
"SET_OR_REMOVE_RESTRICTIONS_ON_BLUEPRINT_COURSE_OBJECT",
{
"course_id": course_id,
"template_id": template_id
},
{
"content_type": content_type,
"content_id": content_id,
"restricted": restricted,
"restrictions": restrictions
},
).parsed_response
end
|