Skip to main content
PUT
/
v4
/
serving
/
{model_server_id}
/
backend
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.update_backend(
    model_server_id="model_server_id",
    new_model_deployment_id="new_model_deployment_id",
)
print(response.account_id)
{
  "name": "<string>",
  "model_server_id": "<string>",
  "account_id": "<string>",
  "new_model_deployment_id": "<string>",
  "model_deployment_id": "<string>",
  "alias": "<string>",
  "old_model_deployment_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

model_server_id
string
required

Body

application/json
new_model_deployment_id
string
required

Response

Successful Response

Point the model server to a new model deployment.

Args: old_model_deployment_id(str): The ID of the model deployment to use as the new backend.

name
string
required
model_server_id
string
required
account_id
string
required
new_model_deployment_id
string
required
model_deployment_id
string
alias
string
old_model_deployment_id
string