// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.cluster.putSettings({
  persistent: {
    "cluster.routing.allocation.total_shards_per_node": 400,
  },
});
console.log(response);
----
