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

Method update_user

slack_sdk/scim/v1/client.py:155–163  ·  view source on GitHub ↗
(self, user: Union[Dict[str, Any], User])

Source from the content-addressed store, hash-verified

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"]
157 return UserUpdateResponse(
158 self.api_call(
159 http_verb="PUT",
160 path=f"Users/{quote(user_id)}",
161 body_params=user.to_dict() if isinstance(user, User) else _to_dict_without_not_given(user),
162 )
163 )
164
165 def delete_user(self, id: str) -> UserDeleteResponse:
166 return UserDeleteResponse(

Callers 2

test_usersMethod · 0.95
test_user_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
UserUpdateResponseClass · 0.85
to_dictMethod · 0.45

Tested by 2

test_usersMethod · 0.76
test_user_crudMethod · 0.36