// 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.update({
  index: ".elastic-connectors",
  id: "connector_id",
  doc: {
    configuration: {
      field_a: {
        type: "str",
        value: "",
      },
      field_b: {
        type: "bool",
        value: false,
      },
      field_c: {
        type: "int",
        value: 1,
      },
      field_d: {
        type: "list",
        value: "a,b",
      },
    },
  },
});
console.log(response);
----
