Get Model Data

Modified on Mon, 23 Jun at 3:30 PM

Description:

This API provides model output data of Smarten Insight model. API response will be in JSON format


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: 


Body -

{

    "predictiveId":"<modelId>"

}

 

 

Response:  

JSON Code is retured as a response which contains below model Data

 

{

    "status": 1,

    "message": "success",

    "data": [

        {

            "columnName": "columnName",

            "columnsValuesList": [

1,

2

3             ]

        }

    ],

    "predictiveName": "Model Name"

}

Postman Example: 

You can import the example below into Postman. 

 

curl --location 'https://demo.smarten.com/smarten/API/predictive/getModelData' \

--header 'username: username' \

--header 'password: password' \

--header 'Content-Type: application/json' \

--header 'Cookie: JSESSIONID=hI8MlzXWBy8ZZVNJ9lvMP_Zv7ucuj7pnh_XlG8e0.ip-172-31-8-13' \

--data '{

    "predictiveId":"modelId"

}'


Tags: SOAP-based web services, SOAP API, API, Get Model Data, smarten insight, cURL,

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article