Mapping fields for the POST method for existing data types
Keep sensitive data private by connecting to your system of record using the POST method.
- Click Add sample request.
- Optional:
To import key value pairs from a file, click Choose
File.
- Navigate to the file you want to import and click Open.
- Edit the fields as necessary.
- Click +Add parameter to add key value pairs to include in the request body.
- Click Map request.
-
To add a field to the data view, click Add new.
- In the Map to field, enter the name of the field.
- Select the type of data that the field contains.
-
Click Initialize call.
Result: The connector parameters are on the left and the data page parameters are on the right. The top-level JSON element determines the structure of the data page - a list page if it's an array, or a single page if it's an object.
-
Choose whether to use live data or data from a JSON file to create the data
type.
- To use data from your system of record, select Live response.
- To use data from a JSON file, click Sample JSON > Add sample response. Follow the prompts to upload a file or paste in sample JSON and click Submit.
-
Map the data from the response to the fields in your data type.
-
Click REST response.
There are some limitations for mapping fields.
- Optional: To view only the fields that are mapped or to view all fields, toggle the Mapped only option.
- Optional: To view details about the response, such as the return code or the raw data, click the Information icon.
- For each single-value item, such as a string or Boolean, that you want to use in your application, drag the item from the response column to a corresponding field in the Fields column.
- If a corresponding field does not exist, add a new field to the data view by clicking the Add icon.
-
Click REST response.
-
Map the data from the request to fields in your data type.
- Click REST request
-
For each connector parameter, select the data page parameter to which
you want to map or enter a new parameter.
Note: You can only add parameters. You cannot delete them for backwards compatibility.
- Click Next
- Click Submit.
- Click Save.