Deployment Model Replacement
This page outlines the operations, endpoints, parameters, and example requests and responses for the Deployment Model Replacement.
PATCH /api/v2/deployments/{deploymentId}/model/
Replace the model used to make predictions for the deployment.
A validation process will be performed to make sure the new model is eligible as a replacement. If the validation fails, the model replacement will not occur.The Model Replacement Validation endpoint can be used to confirm the new model is eligible as a replacement.
Code samples
curl -X PATCH https://app.datarobot.com/api/v2/deployments/{ deploymentId} /model/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
-d '{undefined}'
Body parameter
{
"modelId" : "string" ,
"modelPackageId" : "string" ,
"reason" : "ACCURACY" ,
"runtimeParameterValues" : "string"
}
Parameters
Example responses
202 Response
{
"checks" : {
"combinedModelSegments" : {
"message" : "string" ,
"status" : "failing"
},
"containsTrackedSegmentAttributes" : {
"message" : "string" ,
"status" : "failing"
},
"driftTracking" : {
"message" : "string" ,
"status" : "failing"
},
"featureDataTypes" : {
"message" : "string" ,
"status" : "failing"
},
"features" : {
"message" : "string" ,
"status" : "failing"
},
"humilityRules" : {
"message" : "string" ,
"status" : "failing"
},
"modelCanBeDeployed" : {
"message" : "string" ,
"status" : "failing"
},
"modelStatus" : {
"message" : "string" ,
"status" : "failing"
},
"notCurrentModel" : {
"message" : "string" ,
"status" : "failing"
},
"permission" : {
"message" : "string" ,
"status" : "failing"
},
"predictionIntervals" : {
"message" : "string" ,
"status" : "failing"
},
"predictionReady" : {
"message" : "string" ,
"status" : "failing"
},
"seriesType" : {
"message" : "string" ,
"status" : "failing"
},
"supported" : {
"message" : "string" ,
"status" : "failing"
},
"target" : {
"message" : "string" ,
"status" : "failing"
},
"targetClasses" : {
"message" : "string" ,
"status" : "failing"
},
"targetType" : {
"message" : "string" ,
"status" : "failing"
},
"timeSeriesCompatibility" : {
"message" : "string" ,
"status" : "failing"
},
"validChallenger" : {
"message" : "string" ,
"status" : "failing"
}
},
"message" : "string" ,
"status" : "failing"
}
Responses
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
POST /api/v2/deployments/{deploymentId}/model/validation/
Validate that a model can be used to replace the current model of the deployment.
Code samples
curl -X POST https://app.datarobot.com/api/v2/deployments/{ deploymentId} /model/validation/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
-d '{undefined}'
Body parameter
{
"modelId" : "string" ,
"modelPackageId" : "string"
}
Parameters
Example responses
200 Response
{
"checks" : {
"combinedModelSegments" : {
"message" : "string" ,
"status" : "failing"
},
"containsTrackedSegmentAttributes" : {
"message" : "string" ,
"status" : "failing"
},
"driftTracking" : {
"message" : "string" ,
"status" : "failing"
},
"featureDataTypes" : {
"message" : "string" ,
"status" : "failing"
},
"features" : {
"message" : "string" ,
"status" : "failing"
},
"humilityRules" : {
"message" : "string" ,
"status" : "failing"
},
"modelCanBeDeployed" : {
"message" : "string" ,
"status" : "failing"
},
"modelStatus" : {
"message" : "string" ,
"status" : "failing"
},
"notCurrentModel" : {
"message" : "string" ,
"status" : "failing"
},
"permission" : {
"message" : "string" ,
"status" : "failing"
},
"predictionIntervals" : {
"message" : "string" ,
"status" : "failing"
},
"predictionReady" : {
"message" : "string" ,
"status" : "failing"
},
"seriesType" : {
"message" : "string" ,
"status" : "failing"
},
"supported" : {
"message" : "string" ,
"status" : "failing"
},
"target" : {
"message" : "string" ,
"status" : "failing"
},
"targetClasses" : {
"message" : "string" ,
"status" : "failing"
},
"targetType" : {
"message" : "string" ,
"status" : "failing"
},
"timeSeriesCompatibility" : {
"message" : "string" ,
"status" : "failing"
},
"validChallenger" : {
"message" : "string" ,
"status" : "failing"
}
},
"message" : "string" ,
"status" : "failing"
}
Responses
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
Schemas
ModelReplacementSubmission
{
"modelId" : "string" ,
"modelPackageId" : "string" ,
"reason" : "ACCURACY" ,
"runtimeParameterValues" : "string"
}
Properties
Enumerated Values
ModelReplacementValidationRequest
{
"modelId" : "string" ,
"modelPackageId" : "string"
}
Properties
ModelReplacementValidationResponse
{
"checks" : {
"combinedModelSegments" : {
"message" : "string" ,
"status" : "failing"
},
"containsTrackedSegmentAttributes" : {
"message" : "string" ,
"status" : "failing"
},
"driftTracking" : {
"message" : "string" ,
"status" : "failing"
},
"featureDataTypes" : {
"message" : "string" ,
"status" : "failing"
},
"features" : {
"message" : "string" ,
"status" : "failing"
},
"humilityRules" : {
"message" : "string" ,
"status" : "failing"
},
"modelCanBeDeployed" : {
"message" : "string" ,
"status" : "failing"
},
"modelStatus" : {
"message" : "string" ,
"status" : "failing"
},
"notCurrentModel" : {
"message" : "string" ,
"status" : "failing"
},
"permission" : {
"message" : "string" ,
"status" : "failing"
},
"predictionIntervals" : {
"message" : "string" ,
"status" : "failing"
},
"predictionReady" : {
"message" : "string" ,
"status" : "failing"
},
"seriesType" : {
"message" : "string" ,
"status" : "failing"
},
"supported" : {
"message" : "string" ,
"status" : "failing"
},
"target" : {
"message" : "string" ,
"status" : "failing"
},
"targetClasses" : {
"message" : "string" ,
"status" : "failing"
},
"targetType" : {
"message" : "string" ,
"status" : "failing"
},
"timeSeriesCompatibility" : {
"message" : "string" ,
"status" : "failing"
},
"validChallenger" : {
"message" : "string" ,
"status" : "failing"
}
},
"message" : "string" ,
"status" : "failing"
}
Properties
Enumerated Values
ValidationCheck
{
"message" : "string" ,
"status" : "failing"
}
Whether the replacement model has the same target name as the current model.
Properties
Enumerated Values
ValidationChecks
{
"combinedModelSegments" : {
"message" : "string" ,
"status" : "failing"
},
"containsTrackedSegmentAttributes" : {
"message" : "string" ,
"status" : "failing"
},
"driftTracking" : {
"message" : "string" ,
"status" : "failing"
},
"featureDataTypes" : {
"message" : "string" ,
"status" : "failing"
},
"features" : {
"message" : "string" ,
"status" : "failing"
},
"humilityRules" : {
"message" : "string" ,
"status" : "failing"
},
"modelCanBeDeployed" : {
"message" : "string" ,
"status" : "failing"
},
"modelStatus" : {
"message" : "string" ,
"status" : "failing"
},
"notCurrentModel" : {
"message" : "string" ,
"status" : "failing"
},
"permission" : {
"message" : "string" ,
"status" : "failing"
},
"predictionIntervals" : {
"message" : "string" ,
"status" : "failing"
},
"predictionReady" : {
"message" : "string" ,
"status" : "failing"
},
"seriesType" : {
"message" : "string" ,
"status" : "failing"
},
"supported" : {
"message" : "string" ,
"status" : "failing"
},
"target" : {
"message" : "string" ,
"status" : "failing"
},
"targetClasses" : {
"message" : "string" ,
"status" : "failing"
},
"targetType" : {
"message" : "string" ,
"status" : "failing"
},
"timeSeriesCompatibility" : {
"message" : "string" ,
"status" : "failing"
},
"validChallenger" : {
"message" : "string" ,
"status" : "failing"
}
}
A more granular explanation of why the replacement model was eligible or ineligible.
Properties
Updated March 25, 2025
Submit
Thanks for your feedback!