code: def update_index(self, name, value):
          
          kwargs = {}
          kwargs['index.' + name] = value if isinstance(value, basestring) else json.dumps(value)
          return self.post(**kwargs)
docs: Changes the definition of a KV Store index.
  
          :param name: name of index to change
          :type name: ``string``
          :param value: new index definition
          :type value: ``dict`` or ``string``
  
          :return: Result of POST request