capabilities.work

Test Then Update a Transformation

A 3-step recipe with Hookdeck. We can help you get access.

Recipe · 3 steps

Test Then Update a Transformation

Validate proposed transformation code, then apply it only if the test passes.

  1. Read the existing transformation to confirm it exists before proposing a code change.
  2. Run the proposed code against a sample request to confirm it executes cleanly before persisting it.
  3. Persist the validated code to the transformation.
What you'll need to have ready
  • transformationId: The id of the transformation to update.
  • newCode: The proposed JavaScript code to validate and apply.
  • sampleBody: A sample request body to test the proposed code against.
For your developer

Arazzo workflow hookdeck:update-transformation, 3 operations: getTransformation → testTransformation → updateTransformation. Specs on APIs.io.