class LMSGraphQL::Mutations::Canvas::LockOrUnlockCurrentCspSettingsForSubAccountsAndCourse

Public Instance Methods

resolve(account_id:, settings_locked:) click to toggle source
# File lib/lms_graphql/mutations/canvas/lock_or_unlock_current_csp_settings_for_sub_accounts_and_courses.rb, line 13
def resolve(account_id:, settings_locked:)
  context[:canvas_api].call("LOCK_OR_UNLOCK_CURRENT_CSP_SETTINGS_FOR_SUB_ACCOUNTS_AND_COURSES").proxy(
    "LOCK_OR_UNLOCK_CURRENT_CSP_SETTINGS_FOR_SUB_ACCOUNTS_AND_COURSES",
    {
      "account_id": account_id
    },
    {
      "settings_locked": settings_locked
    },
  ).parsed_response
end