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

Method update_group

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

Source from the content-addressed store, hash-verified

220 )
221
222 def update_group(self, group: Union[Dict[str, Any], Group]) -> GroupUpdateResponse:
223 group_id = group.id if isinstance(group, Group) else group["id"]
224 return GroupUpdateResponse(
225 self.api_call(
226 http_verb="PUT",
227 path=f"Groups/{quote(group_id)}",
228 body_params=group.to_dict() if isinstance(group, Group) else _to_dict_without_not_given(group),
229 )
230 )
231
232 def delete_group(self, id: str) -> GroupDeleteResponse:
233 return GroupDeleteResponse(

Callers 2

test_groupsMethod · 0.95
test_group_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
GroupUpdateResponseClass · 0.85
to_dictMethod · 0.45

Tested by 2

test_groupsMethod · 0.76
test_group_crudMethod · 0.36