Class: LMSGraphQL::Mutations::Canvas::CreateNewSubAccount

Inherits:
BaseMutation
  • 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



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/lms_graphql/mutations/canvas/create_new_sub_account.rb', line 17

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)
  context[:canvas_api].call("CREATE_NEW_SUB_ACCOUNT").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]": 
    },
  ).parsed_response
end