Skip to main content
POST
/
v4
/
serving
/
{model_server_id}
/
rollback
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
response = client.model_servers.rollback(
    "model_server_id",
)
print(response.from_deployment)
{
  "rolled_back_to_deployment": "<string>",
  "from_deployment": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

model_server_id
string
required

Response

Successful Response

rolled_back_to_deployment
string
required
from_deployment
string
required