Rate this feature
Included in the Jan. 2023 release You can enter mock response data when configuring imports instead of executing a call to retrieve live response data from an import step. The mock response data that you provide for an import applies only to that specific import, including its components such as mapping, transformation, and hooks. If no mock data has been added to the flow step, you can click Populate with preview data to send a request to retrieve real data. If the preview panel is not available for the import, click Populate with sample response data to add a sample mock response in the field.
Note: The Mock response section at the bottom of the Edit import panel is also available for flows in an Integration App.
Mock response section
When you are creating an import, if the preview panel is available, click Populate with preview data option to replace mock response data in this editor with preview data and to view it in the Mock response field.
While creating an import, if the preview panel is not available, click Populate with sample response data to overwrite existing mock response data with sample mock data.
Once you provide the mock data in valid integrator.io canonical JSON format, a message is displayed to confirm the validity of the JSON. Click Save. If the entry provided does not match canonical format, a message prompts you to edit the mock data in the form. Your mock data can’t exceed 1 MB in size or 10 records.
Please sign in to leave a comment.