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?


which language client is this for?

js,here is the link

one example would be

      body: {
        transient: {
          threadpool: {
            bulk: {
              queue_size: -1
    }, some_callback);