Skip to main content
PATCH
Update a deployment

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Project identifier.

endpointId
string
required

Endpoint identifier.

id
string
required

Deployment identifier.

Query Parameters

updateMask
string

Fields to update. If not set, the fields populated on deployment are updated.

Body

application/json

Mutable deployment settings. Use the resource-name fields or their deprecated ID alternatives for a model or config change, but not both.

name
string

Updated inference-addressable deployment name.

autoscaling
object

Updated autoscaling configuration.

etag
string

Current deployment version. The update is rejected if this value no longer matches.

Response

OK

Serving workload that binds a model and immutable config to an endpoint and manages its replicas.

id
string
required
read-only

Unique deployment identifier.

projectId
string
required
read-only

ID of the project that owns the deployment.

endpointId
string
required

ID of the endpoint that contains the deployment.

name
string
required

Project- and endpoint-qualified deployment name in the form <project_slug>/<endpoint_name>/<deployment_name>. Pass it as model in an inference request to target this deployment directly instead of using the endpoint's traffic split.

createdAt
string<date-time>
required
read-only

Timestamp when the deployment was created.

updatedAt
string<date-time>
required
read-only

Timestamp when the deployment was last updated.

modelId
string
required

Deprecated. Use model. Model identifier being served, populated during migration.

modelRevisionId
string
required

Deprecated. Use model with a /revisions/{revisionId} segment. Pin to a specific model revision.

model
string
required

Pinned model resource in the form projects/{projectId}/models/{modelId}/revisions/{revisionId}.

autoscaling
object
required

Replica bounds, timing windows, and metrics that control horizontal scaling.

configId
string
required

Deprecated. Use config. Config revision identifier, populated during migration.

config
string
required

Immutable config revision in the form projects/{projectId}/configs/{configRevisionId}.

etag
string
required

Opaque version tag for optimistic concurrency control. Supply on update/delete to ensure consistent read-modify-write. If not set, the write overwrites based on current state.

hardware
string
required
read-only

Hardware selected by the deployment config, including GPU type and count.

trafficMode
enum<string>
required
read-only

Whether the deployment serves client-visible responses or only mirrored shadow traffic.

Available options:
TRAFFIC_MODE_LIVE,
TRAFFIC_MODE_SHADOW
status
object
required

Current lifecycle state and observed replica counts.

speculatorId
string
read-only

Deprecated. Use speculator. Speculative decoding model identifier derived from the deployment config.

speculatorRevisionId
string
read-only

Deprecated. Use speculator. ID of the speculative decoding draft-model revision pinned at creation time.

speculator
string
read-only

Pinned draft-model resource used for speculative decoding, in the same form as model. Omitted when speculative decoding is disabled.

estimatedEffectiveTrafficShare
number<double>
read-only

Estimated fraction in [0, 1] of endpoint traffic that reaches this deployment under the current routing configuration. Absent or unrouted deployments are 0.

enableLora
boolean

Whether the deployment can dynamically load LoRA adapters.

runtimeInfo
object

Serving engine and feature support derived from the immutable config.

desiredReplicas
integer
read-only

Number of replicas the autoscaler currently wants across all regions.

placement
object

Region constraints used to schedule the deployment's replicas.