This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Performs inference on the live deployment.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:models-execute.
objectmap<string, any>The input data for the model inference. The structure should match the model's transform API specification, where each key is an input name and the value is the corresponding input data.
objectThe response from transforming input data using a live deployment.
map<string, any>The output data from the model inference. The structure depends on the model's defined API specification, where each key is an output name and the value is the corresponding output data.
1
2
3
4
5
curl -X POST \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/models/liveDeployments/ri.foundry-ml-live.main.live-deployment.f351c142-0e4c-4b12-adc2-6e1539737ae9/transformJson?preview=true" \
-d '{"input":{"input_df":[{"feature_1":1.0,"feature_2":2}]}}'| Error Name | ||
|---|---|---|
Transform | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not transformJson the LiveDeployment. | |
| Parameters | liveDeploymentRid | |
See Errors for a general overview of errors in the platform.