How to use api cluster.putSettings?

Hi guys, does any know how to use the api of cluster.putSettings to put cluster settings?I have referenced the api docs,but it really confused me.

How can i summit data? which param should I use?

Thx

which language client is this for?

js,here is the link https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference-2-1.html#api-cluster-putsettings-2-1

one example would be

    client.cluster.putSettings({
      body: {
        transient: {
          threadpool: {
            bulk: {
              queue_size: -1
            }
          }
        }
      }
    }, some_callback);

thx!