(self, id: str, partial_user: Union[Dict[str, Any], User])
| 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"] |