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

Method patch_group

slack_sdk/scim/v1/client.py:209–220  ·  view source on GitHub ↗
(self, id: str, partial_group: Union[Dict[str, Any], Group])

Source from the content-addressed store, hash-verified

207 )
208
209 def patch_group(self, id: str, partial_group: Union[Dict[str, Any], Group]) -> GroupPatchResponse:
210 return GroupPatchResponse(
211 self.api_call(
212 http_verb="PATCH",
213 path=f"Groups/{quote(id)}",
214 body_params=(
215 partial_group.to_dict()
216 if isinstance(partial_group, Group)
217 else _to_dict_without_not_given(partial_group)
218 ),
219 )
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"]

Callers 2

test_groupsMethod · 0.95
test_group_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
GroupPatchResponseClass · 0.85
to_dictMethod · 0.45

Tested by 2

test_groupsMethod · 0.76
test_group_crudMethod · 0.36