update dedicated endpoint
update_dedicated_endpointScale, start, stop, or rename a dedicated endpoint, and change its GPU type or count to re-size capacity and control billing.
Instructions
Scales, starts/stops, renames, or changes the GPU configuration of a dedicated endpoint — use enabled=false to stop billing without deleting, or gpu_type/gpu_count to re-size (which re-freezes the price). PATCH /v1/dedicated/{id} (API-key scope: platform:write). SPENDS MONEY: this starts billable work on the workspace wallet. Returns: { ok: true } on success (no body data). Notes: 400 'Invalid JSON body'. Requires an OWNER/ADMIN minting user (403). 404 'Endpoint not found'. 400 on invalid replica range (max must be >= min >= 1), GPU not available for the model/region, disallowed GPU count, max replicas above the configuration limit, or no price configured. MONEY: a GPU change re-prices the endpoint at today's rate (new frozen hourly_rate_usd) and is gated at 402 unless the wallet covers 1 prepay hour at the new configuration; stopping (enabled=false) or any GPU change immediately meters and bills the GPU-hours accrued so far. Status becomes UPDATING (GPU change), STOPPING (enabled=false) or STARTING (enabled=true). Scope note: local dedicated apiKeyActor does not enforce key scopes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Dedicated endpoint id (must belong to the key's workspace). | |
| name | No | New display name (trimmed). | |
| enabled | No | false = STOP the endpoint (runs a final meter for accrued GPU-hours, status STOPPING); true = START it (status STARTING, billing resumes when RUNNING). Omit to leave unchanged. | |
| gpu_type | No | Change GPU type (must be available for the endpoint's model/flavor in its region). Alias: gpuType. Triggers a price re-freeze + wallet gate + final meter. | |
| gpu_count | No | Change GPU count (must be in allowed_gpu_counts). Alias: gpuCount. Same re-freeze semantics as gpu_type. | |
| description | No | New description (trimmed). | |
| max_replicas | No | >= min_replicas; defaults to the current value. Alias: maxReplicas. Sending either replica field pushes the new scaling range. | |
| min_replicas | No | >= 1; defaults to the current value. Alias: minReplicas. |