The POST /environments/{{envID}}/riskPredictors operation creates a new risk predictor.

Since this example creates a custom predictor, the type property is set to MAP. It also defines the map property to specify the mapping of risk levels to the list of conditions.

Note that the name property is case (and space) sensitive; the API does not allow two predictors with the exact same name. However, the API does not restrict creating predictors with names such as my name and My Name. Case sensitivity also applies to the compactName property. The API recognizes mypredictor and MyPredictor as unique names.

See Risk Predictors for more information, including the data models.