Class: LMS::GraphQL::Mutations::Canvas::CreateNewSubAccount

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/create_new_sub_account.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, account_name:, account_sis_account_id: nil, account_default_storage_quota_mb: nil, account_default_user_storage_quota_mb: nil, account_default_group_storage_quota_mb: nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/lms/graphql/mutations/canvas/create_new_sub_account.rb', line 15

def resolve(account_id:, account_name:, account_sis_account_id: nil, account_default_storage_quota_mb: nil, account_default_user_storage_quota_mb: nil, account_default_group_storage_quota_mb: nil)
  ctx[:canvas_api].proxy(
    "CREATE_NEW_SUB_ACCOUNT",
    {
      "account_id": ,
      "account[name]": ,
      "account[sis_account_id]": ,
      "account[default_storage_quota_mb]": ,
      "account[default_user_storage_quota_mb]": ,
      "account[default_group_storage_quota_mb]":               },
    nil,
  ).parsed_response
end