// 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.index({ index: 'twitter', id: '1', version: '2', version_type: 'external', body: { message: 'elasticsearch now has versioning support, double cool!' } }) console.log(response) ----