REST API Reference > Model Serve REST API > Starting and stopping a quick start model or model deployment
  

Starting and stopping a quick start model or model deployment

Use the control resource to start, restart, and stop a quick start model or a model deployment.

POST request

To start, restart, or stop a deployment, include the deployment ID in the URI.
To start a deployment, use the following URI:
/mlops/api/v1/deployment/control/<deployment ID>/start
To restart a deployment, use the following URI:
/mlops/api/v1/deployment/control/<deployment ID>/restart
To stop a deployment, use the following URI:
/mlops/api/v1/deployment/control/<deployment ID>/stop
Get the ID for a quick start model from the response to get information about a single quick start model. For more information, see Getting information about a quick start model.
Get the deployment ID for a model deployment from the response to monitor a model deployment. For more information, see Monitoring model deployments.
Note: To start a quick start model through an API request, you must first start it at least once through the user interface.

POST response

Returns the deployment object.
The following table describes the fields in a deployment object:
Field
Description
deploymentID
ID of the quick start model or model deployment.
state
Requested state of the deployment. When you start or restart the deployment, the state is ENABLED. When you stop the deployment, the state is DISABLED.
status
Current status of the deployment.
message
Warning or error message string.
Applies only if a warning or error occurs.
startedByUserID
ID of the user that last started the deployment.
startedbyUserName
Name of the user that last started the deployment.
startTime
Time that the deployment started, in milliseconds from the UNIX epoch, 00:00:00 UTC on January 1, 1970.
stopTime
Time that the deployment stopped, in milliseconds from the UNIX epoch.
Applies only when you stop the deployment.
updateTime
Time that the deployment status was last updated, in milliseconds from the UNIX epoch.