While you are building your API Connection, you can use Mock Data to test the API Connection and ensure your transformations are working as expected. This Mock data is saved as a Mock User where you can group mock responses for a given scenario.

The Mock Data is only used when testing the API Connection. Use Test Users to test and simulate Tasks and Function responses.

Mock Users

A mock user is a collection of mock responses that simulate how your server may respond. Each endpoint in use by an API Connection can have a mock response defined. By default, the mock user will return the default mock data defined in the API Connection’s API Source.

To Create a Mock User:

1

Navigate to API Integration Hub > API Mock Users

Access the API Mock Users section from the API Integration Hub.

2

Click 'Create User'

Select the ‘Create User’ button to start creating a new mock user.

3

Specify the User Details

Provide the following information:

  • Name of the User
  • Description of the User
4

Define Mock Responses

The newly created mock user will have a default mock response for each endpoint in the API Connection.

You can check “Override Default Mock response” and specify a new mock response.

Make sure to save the mock user to apply the changes.

Using Mock Users

You can use Mock Users to test your transformations. From within the Response interface, you can select the mock user to use in the “Test Response” panel.

This allows you to save common responses from your server in sets of Mock users. As you iterate on your API Connection, you can test your transformation using the same mock responses.

Next Steps