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_id,
"account[name]": account_name,
"account[sis_account_id]": account_sis_account_id,
"account[default_storage_quota_mb]": account_default_storage_quota_mb,
"account[default_user_storage_quota_mb]": account_default_user_storage_quota_mb,
"account[default_group_storage_quota_mb]": account_default_group_storage_quota_mb },
nil,
).parsed_response
end
|