docs: def put(self, key, value, lease=None):
          """Put puts the given key into the key-value store.
  
          A put request increments the revision of the key-value store
          and generates one event in the event history.
  
          :param key:
          :param value:
          :param lease:
          :return: boolean
          """
          payload = {
              "key": _encode(key),
              "value": _encode(value)
          }
          if lease:
              payload['lease'] = lease.id
          self.post(self.get_url("/kv/put"), json=payload)
          return True