code: def update(self, file_path, new_data={}, **kwargs):
          
  
          data = new_data.copy()
          file_path = file_path.replace('/', '%2F')
          data['file_path'] = file_path
          path = '%s/%s' % (self.path, file_path)
          self._check_missing_update_attrs(data)
          return self.gitlab.http_put(path, post_data=data, **kwargs)
docs: Update an object on the server.
  
          Args:
              id: ID of the object to update (can be None if not required)
              new_data: the update data for the object
              **kwargs: Extra options to send to the server (e.g. sudo)
  
          Returns:
              dict: The new object data (*not* a RESTObject)
  
          Raises:
              GitlabAuthenticationError: If authentication is not correct
              GitlabUpdateError: If the server cannot perform the request