Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsRequest body modification: setup via Dashboard

Request body modification: setup via Dashboard

Adding a body transformation using the endpoint designer is very straightforward, you can use the same examples that are set out in the API Definition Object configuration transformation documentation with the dashboard.

Step 1: Create the transform

Create a new Endpoint and select the Body Transforms plugin.

Endpoint designer

Step 2: Define the transform

Select your input type, and then add the template you would like to use to the Template input box.

Body transform

Step 3: Test the transform

If you have sample input data, you can use the input box to add it, and then test it using the Test button.

As you can see from the screenshot above, we’ve already done this and you can see the sample output of the transformation in the Output field.

Was this article helpful to you? Yes No