LinkedIn
Copied!

Table of Contents

Improve the performance of DX APIs and automation-based REST services by using JSON (8.6)

Improve the performance of your DX APIs and automation-based REST services by configuring JSON inputs and outputs in an automation rule. The automation then passes the JSON object directly to the REST service instead of transforming the data on a page to JSON first. This enhancement also makes it easier to call an automation from an activity.

When you configure a JSON input or output, you provide a valid OpenAPI-specific .yaml file that the system generates in the Swagger documentation of the REST service, as shown in the following figure:

JSON schema configuration in an automation rule
JSON schema configuration in an automation rule

To preview the data structure of the JSON sample, you can simulate a JSON response in the automation rule and update the JSON sample if needed, as shown in the following figure:

JSON sample response on the Implementation tab of an automation rule
JSON sample response on the Implementation tab of an automation rule

For more information, see Configuring validation for text inputs and outputs in automations and Simulating a JSON response in automations.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.