After a bit of playing around, I think I have a workable solution to share.
Firstly, let's create a classifier using the titanic datset.
cl = Classify[
ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"]
Let's now define an API function.
Within the function, we want to define the independent variables that are passed ...