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

Method patch_user

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_usersMethod · 0.95

Calls 4

api_callMethod · 0.95
UserPatchResponseClass · 0.85
to_dictMethod · 0.45

Tested by 1

test_usersMethod · 0.76