Create parameter maps
You use the parameter_map and
relational_parameter_map commands to create and update parameter maps
and relational parameter maps.
Creating a parameter map
You create a parameter map by specifying a model id along with an
array of key-value pairs and a default value. In this example you create a parameter
map in a model with an id of
<modelId> with 2 key-value pairs and
a default value.
- Input JSON data
-
{ "parent":"<modelId>", "name":"TestParameterMap", "entries":[ { "key":"a", "value":"1" }, { "key":"b", "value":"2" } ], "defaultValue":"ABC" }
Creating a relational parameter map
You create a relational parameter map by specifying a model id along
with a default value. In this example you create a parameter map in a model with an
id of <modelId> with a
default value.
- Input JSON data
-
{ "parent":"<modelId>", "name":"testRelationalParameterMap", "defaultValue":"ABCD" }
After creating a relational parameter map, you can associate query items and filters
with it. In this example, you create a query item (using the
query_item command) associated with the relational parameter
map with an id of
<relationalParameterMapId>.
- Input JSON data
-
{ "parent":"<relationalParameterMapId>", "name":"testQueryItem" }