Update a deployment
Updates mutable deployment fields such as its model, configuration, autoscaling bounds, or LoRA support. Changes that affect serving may trigger asynchronous reprovisioning.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project identifier.
Endpoint identifier.
Deployment identifier.
Query Parameters
Fields to update. If not set, the fields populated on deployment are updated.
Body
Mutable deployment settings. Use the resource-name fields or their deprecated ID alternatives for a model or config change, but not both.
Updated endpoint string.
Updated autoscaling configuration.
Updated inactive timeout in minutes. Use 0 to disable automatic stopping; otherwise accepted values are 30 through 1440.
Updated maximum number of inference requests that may be in flight to a single replica. Values above the deployment config's per-replica concurrency limit minus one are reduced on update; 0 means unlimited when the config limit is 1 or less. Changes take effect without restarting replicas.
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.
Unique deployment identifier.
ID of the project that owns the deployment.
ID of the endpoint that contains the deployment.
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.
Timestamp when the deployment was created.
Timestamp when the deployment was last updated.
Deprecated. Use model. Model identifier being served, populated during migration.
Deprecated. Use model with a /revisions/{revisionId} segment. Pin to a specific model revision.
Pinned model resource in the form projects/{projectId}/models/{modelId}/revisions/{revisionId}.
Replica bounds, timing windows, and metrics that control horizontal scaling.
Deprecated. Use config. Config revision identifier, populated during migration.
Immutable config revision in the form projects/{projectId}/configs/{configRevisionId}.
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 selected by the deployment config, including GPU type and count.
Whether the deployment serves client-visible responses or only mirrored shadow traffic.
TRAFFIC_MODE_LIVE, TRAFFIC_MODE_SHADOW Current lifecycle state and observed replica counts.
Deprecated. Use speculator. Speculative decoding model identifier derived from the deployment config.
Deprecated. Use speculator. ID of the speculative decoding draft-model revision pinned at creation time.
Pinned draft-model resource used for speculative decoding, in the same form as model. Omitted when speculative decoding is disabled.
Estimated fraction in [0, 1] of endpoint traffic that reaches this deployment under the current routing configuration. Absent or unrouted deployments are 0.
Maximum number of inference requests that may be in flight to a single replica. If omitted, the platform uses one less than the config's per-replica concurrency limit to reserve a health-check slot. Values above that maximum are reduced on create and update; 0 means unlimited when the config limit is 1 or less. Changes take effect without restarting replicas.
Minutes without an inference request before the deployment stops automatically. Omitted or 0 means automatic stopping is disabled.
Serving engine and feature support derived from the immutable config.
Number of replicas the autoscaler currently wants across all regions. Not settable on
any request; steer it through autoscaling.minReplicas and autoscaling.maxReplicas.
Region constraints used to schedule the deployment's replicas.
- Option 1
- Option 2