To map hierarchical fields in the request mapping, the hierarchies of the incoming fields and request schema fields must match.
For example, the following image shows a request schema in an API collection:
The following image shows incoming fields in a Machine Learning transformation with a hierarchy that matches the request schema:
The following image shows the request mapping between the incoming fields and the request schema fields:
If the hierarchies don't match, use a Hierarchy Processor transformation before the Machine Learning transformation to restructure the incoming data according to the request schema fields. For more information, see
Hierarchy Processor transformation.