Use dynamic experiment data in the API request
You can copy and paste dynamic data from a web experiment in the API request. This is beneficial if you want to use any parameters in the API request that are requested by the dependent website, such as "uri", "region", and "pointOfSale".
To include dynamic experiment data in the API request:
-
In the code editor, click the API tab.
-
On the Data tab, in the Data selector search box, enter a guest's email address or other identifier to search. This enables you to access data model attributes and paths.
TipIf there is a guest whose data you often use when configuring or testing code, click the star icon to bookmark the guest so you no longer have to search for them.
-
Under Experience Response, click
next to the attribute or path and click Copy Path as FreeMarker.
-
Paste the data into the API tab.
-
You must then reference this data again by pasting it into the relevant HTML, CSS, or JavaScript editor.
-
Click Save.
-
Click
to close the code editor.