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

Method patch_user

slack_sdk/scim/v1/client.py:144–153  ·  view source on GitHub ↗
(self, id: str, partial_user: Union[Dict[str, Any], User])

Source from the content-addressed store, hash-verified

142 )
143
144 def patch_user(self, id: str, partial_user: Union[Dict[str, Any], User]) -> UserPatchResponse:
145 return UserPatchResponse(
146 self.api_call(
147 http_verb="PATCH",
148 path=f"Users/{quote(id)}",
149 body_params=(
150 partial_user.to_dict() if isinstance(partial_user, User) else _to_dict_without_not_given(partial_user)
151 ),
152 )
153 )
154
155 def update_user(self, user: Union[Dict[str, Any], User]) -> UserUpdateResponse:
156 user_id = user.id if isinstance(user, User) else user["id"]

Callers 2

test_usersMethod · 0.95
test_user_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
UserPatchResponseClass · 0.85
to_dictMethod · 0.45

Tested by 2

test_usersMethod · 0.76
test_user_crudMethod · 0.36