docs: def update_user(self, user_id, body, **kwargs):  # noqa: E501
          """Update user details.  # noqa: E501
  
          An endpoint for updating user details.   **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -d '{\"username\": \"myusername\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'`  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.update_user(user_id, body, asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param str user_id: The ID of the user whose details are updated. (required)
          :param UserUpdateReq body: A user object with attributes. (required)
          :return: UserInfoResp
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.update_user_with_http_info(user_id, body, **kwargs)  # noqa: E501
          else:
              (data) = self.update_user_with_http_info(user_id, body, **kwargs)  # noqa: E501
              return data