REST API Reference
> Model Serve REST API
Model Serve
REST API
Use the
Model Serve
REST API resources to create and deploy
Model Serve
assets.
When you use
Model Serve
resources, note the following rules:
•
Use JSON or XML format.
•
The base URL that you use depends on the request that you make. Use one of the following options:
-
To generate predictions from a quick start model, use the predictUrl value from the request for information about a single quick start model.
-
To generate predictions from a user-defined machine learning model, use the predictUrl value from the request to monitor a model deployment.
-
To make any other request, use the serverUrl value from the login response. For example:
https://na4.dm-us.informaticacloud.com/saas
•
Use the following request header format:
<METHOD> <serverUrl>/<URI> HTTP/<HTTP version>
Content-Type: application/json
Accept: application/json
icSessionId: <SessionId>
Note:
If you use a tool such as Postman that automatically includes the HTTP version, do not enter the HTTP version in the URL. If the HTTP version appears twice in the URL, the request fails.