code: def update(self, id, data):
          
          id = self.as_id(id)
          response = self.http.patch(
              '%s/%s' % (self, id), json=data, auth=self.auth
          )
          response.raise_for_status()
          return response.json()
docs: Update a component