Description:
This API provides facility to get predicted values from model for multiple records of predictor criteria input.
API Endpoint:
/ws/predective
Method:
POST
Header:
Field | Value |
SOAPAction | /ws/predictive |
Request:
Parameters | Type | Value |
Header - username | String | Smarten Username |
Header - password | String | Smarten Password |
Body - model Id | String |
|
Request Example:
{
"predictiveId":"<ModelId>",
"predictiveData":
[ { "columnName" : "column1",
"columnsValuesList" : [ "value1", "value2", "value3"]},
{ "columnName" : "column2",
"columnsValuesList" : [ "value1","value2","value3"]},
{ "columnName" : "column3",
"columnsValuesList" : [ "value1","value2","value3"]}
]
}
Response: A html page is displayed with prediction.
Postman Example:
You can import the example below into Postman.
curl --location 'https://<SMARTENURL>/smarten/ws/repositoryManagement.wsdl' \
--header 'username: user\
--header 'password: user\
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=hI8MlzXWBy8ZZVNJ9lvMP_Zv7ucuj7pnh_XlG8e0.ip-172-31-8-13' \
--data '{
"predictiveId":"modelId",
"predictiveData":
[ { "columnName" : "column1",
"columnsValuesList" : [ "value1", "value2", "value3"]},
{ "columnName" : "coulmn2",
"columnsValuesList" : [ "value1","value2","value3"]},
{ "columnName" : "column3",
"columnsValuesList" : [ "value1","value2","value3"]}
]
}'
Tags: get prediction, SOAP-based web services, SOAP API, cURL, smarten insight,
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article