Update metadata

Change a document's metadata without re-indexing its content. Useful for updating URLs, prices, or feature flags.


import { Etoile } from "@etoile-dev/client";

const etoile = new Etoile({
apiKey: process.env.ETOILE_API_KEY,
});

await etoile.patch({
id: "starry-night",
metadata: {
  artist: "Vincent van Gogh",
  year: 1889,
  featured: true,
},
});

Related