After you create an online or a batch deployment, you can still update your deployment details and update the assets that are associated with your deployment.
For <operation type>, use "add", "remove", or "replace".
Updating assets associated with a deployment
Copy link to section
After you create an online or batch deployment, you can update the deployed asset from the same endpoint. For example, if you have a better performing model, you can replace the deployed model with the improved version. When the update is complete,
the new model is available from the REST API endpoint.
Before you update an asset, make sure that these conditions are true:
The framework of the new model is compatible with the existing deployed model.
The input schema exists and matches for the new and deployed model.
Caution: Failure to follow these conditions can result in a failed deployment.
For <operation type>, use "add", "remove", or "replace".
The initial state for the PATCH API output is "updating". Keep polling the status until it changes to "ready", then retrieve the deployment meta.
Only the ASSET attribute can be specified for the asset patch. Changing any other attribute results in an error.
The schema of the current model and the model being patched is compared to the deployed asset. A warning message is returned in the output of the Patch request API if the two don't match. For example, if a mismatch is detected, you can
find this information in the output response.
"status":{"message":{"text":"The input schema of the asset being patched does not match with the currently deployed asset. Please ensure that the score payloads are up to date as per the asset being patched."},
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.