Class: LMSGraphQL::Mutations::Canvas::RemoveAccountAdmin

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/remove_account_admin.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, user_id:, role: nil, role_id: nil) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/lms_graphql/mutations/canvas/remove_account_admin.rb', line 12

def resolve(account_id:, user_id:, role: nil, role_id: nil)
  ctx[:canvas_api].proxy(
    "REMOVE_ACCOUNT_ADMIN",
    {
      "account_id": ,
      "user_id": user_id,
      "role": role,
      "role_id": role_id            },
    nil,
  ).parsed_response
end