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

[source, js]
----
const response = await client.indices.create({
  index: "my-index-000002",
  mappings: {
    properties: {
      datetime: {
        type: "date",
        format: "uuuu/MM/dd HH:mm:ss||uuuu/MM/dd||epoch_millis",
      },
    },
  },
});
console.log(response);
----
