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

Method update_group

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_groupsMethod · 0.95

Calls 4

api_callMethod · 0.95
GroupUpdateResponseClass · 0.85
to_dictMethod · 0.45

Tested by 1

test_groupsMethod · 0.76