// 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.ccr.putAutoFollowPattern({
  name: "<auto_follow_pattern_name>",
  remote_cluster: "<remote_cluster>",
  leader_index_patterns: ["<leader_index_pattern>"],
  leader_index_exclusion_patterns: ["<leader_index_exclusion_pattern>"],
  follow_index_pattern: "<follow_index_pattern>",
});
console.log(response);
----
