<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_view(self, view_id, attributes):
 """ Update an existing view using the details supplied via the attributes parameter :param view_id: the view's id :param attributes: a dictionary containing the modifications to be made to the view :return: """

        if not isinstance(attributes, dict):
            raise TypeError('Must be of type dict')
        attribute_data = json.dumps(attributes)
        return self.transport.PUT(url='/view/{}'.format(view_id),
                                  body=attribute_data, type='application/json')