// 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.indices.createFrom({
  source: "my-index",
  dest: "my-new-index",
  create_from: {
    settings_override: {
      index: {
        "blocks.write": null,
        "blocks.read": null,
        "blocks.read_only": null,
        "blocks.read_only_allow_delete": null,
        "blocks.metadata": null,
      },
    },
  },
});
console.log(response);
----
