code: def _update(self, resource, update_dict=None, params=None, **kwargs):
          
          url = self._client._build_url(resource, **kwargs)
          response = self._client._request('PUT', url, json=update_dict, params=params)
  
          if response.status_code != requests.codes.ok:  # pragma: no cover
              raise APIError("Could not update {} ({})".format(self.__class__.__name__, response.json().get('results')))
          else:
              self.refresh()
docs: Update the object.