> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.update_endpoint

Update an existing serverless endpoint group.

## Signature

```python theme={null}
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

<ParamField path="id" type="int" required>
  ID of the endpoint to update.
</ParamField>

<ParamField path="min_load" type="Optional[float]">
  Minimum load (requests/sec) below which idle workers are scaled down.
</ParamField>

<ParamField path="target_util" type="Optional[float]">
  Target worker utilization ratio (0.0-1.0).
</ParamField>

<ParamField path="cold_mult" type="Optional[float]">
  Multiplier applied to warm worker count for pre-warming cold workers.
</ParamField>

<ParamField path="cold_workers" type="Optional[int]">
  Number of pre-warmed (cold) workers to keep ready.
</ParamField>

<ParamField path="max_workers" type="Optional[int]">
  Maximum number of workers allowed in this endpoint.
</ParamField>

<ParamField path="endpoint_name" type="Optional[str]">
  Human-readable name for the endpoint.
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.update_endpoint(id=12345)
print(result)
```
