// 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.ingest.putPipeline({
  id: "my_test_scores_pipeline",
  description: "Calculates the total test score",
  processors: [
    {
      script: {
        source: "ctx.total_score = (ctx.math_score + ctx.verbal_score)",
      },
    },
  ],
});
console.log(response);
----
