Class: LMSGraphQL::Mutations::Canvas::CreateGroupCategoryAccount

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/create_group_category_accounts.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, name:, self_signup: nil, auto_leader: nil, group_limit: nil, sis_group_category_id: nil, create_group_count: nil, split_group_count: nil) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/lms_graphql/mutations/canvas/create_group_category_accounts.rb', line 19

def resolve(account_id:, name:, self_signup: nil, auto_leader: nil, group_limit: nil, sis_group_category_id: nil, create_group_count: nil, split_group_count: nil)
  context[:canvas_api].call("CREATE_GROUP_CATEGORY_ACCOUNTS").proxy(
    "CREATE_GROUP_CATEGORY_ACCOUNTS",
    {
      "account_id": 
    },
    {
      "name": name,
      "self_signup": ,
      "auto_leader": auto_leader,
      "group_limit": group_limit,
      "sis_group_category_id": sis_group_category_id,
      "create_group_count": create_group_count,
      "split_group_count": split_group_count
    },
  ).parsed_response
end