MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / create_group

Method create_group

slack_sdk/scim/v1/client.py:200–207  ·  view source on GitHub ↗
(self, group: Union[Dict[str, Any], Group])

Source from the content-addressed store, hash-verified

198 return ReadGroupResponse(self.api_call(http_verb="GET", path=f"Groups/{quote(id)}"))
199
200 def create_group(self, group: Union[Dict[str, Any], Group]) -> GroupCreateResponse:
201 return GroupCreateResponse(
202 self.api_call(
203 http_verb="POST",
204 path="Groups",
205 body_params=group.to_dict() if isinstance(group, Group) else _to_dict_without_not_given(group),
206 )
207 )
208
209 def patch_group(self, id: str, partial_group: Union[Dict[str, Any], Group]) -> GroupPatchResponse:
210 return GroupPatchResponse(

Callers 2

test_groupsMethod · 0.95
test_group_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
GroupCreateResponseClass · 0.85
to_dictMethod · 0.45

Tested by 2

test_groupsMethod · 0.76
test_group_crudMethod · 0.36