Update an existing serverless endpoint group.
Signature
VastAI.update_endpoint(
id: int,
min_load: Optional[float] = None,
target_util: Optional[float] = None,
cold_mult: Optional[float] = None,
cold_workers: Optional[int] = None,
max_workers: Optional[int] = None,
endpoint_name: Optional[str] = None
) -> str
Parameters
ID of the endpoint to update.
Minimum load (requests/sec) below which idle workers are scaled down.
Target worker utilization ratio (0.0–1.0).
Multiplier applied to warm worker count for pre-warming cold workers.
Number of pre-warmed (cold) workers to keep ready.
Maximum number of workers allowed in this endpoint.
Human-readable name for the endpoint.
Returns
str — Result from the API call.
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.update_endpoint(id=12345)
print(result)