Rules Testing with jsonxform/transformation endpoint
Test the results of a rule before deployment by calling the jsonxform/transformation endpoint.
Use cURL or Postman to execute a Post call on the /services/data/v51.0/jsonxform/transformation REST endpoint. See the examples for starting points on what the POST request body must contain.
If the rule works, the POST response contains the transformed JSON results. If the rule doesn’t work, the POST response contains any errors with guidance to fix the rule.
The following examples show how you can take advantage of the built-in tokens we provide.
A “put” rule that adds a name/value pair to the JSON.
Tests an array function (contains) to determine the right value to add to the final JSON.
Tests a macro with a rule.
For reference on the jsonxform/transformation REST endpoint, see JsonXform Transformation Resource in the Analytics REST API Developer Guide.