---
title: "update workergroup"
method: PUT
path: "/api/v0/workergroups/{id}/"
tags: ["Serverless"]
---

# update workergroup

`PUT /api/v0/workergroups/{id}/`

Updates the properties of an existing workergroup based on the provided parameters.

CLI Usage: `vastai update workergroup <id> [options]`

## Path parameters

- `id` integer, required

## Request body

- object
  - `min_load` number — Minimum load for the workergroup.
  - `target_util` number — Target utilization for the workergroup.
  - `cold_mult` number — Cold multiplier for the workergroup.
  - `test_workers` integer — Number of test workers for performance estimation.
  - `template_hash` string — Template hash for the workergroup.
  - `template_id` integer — Template ID for the workergroup.
  - `search_params` string — Search parameters for offers (JSON object or query string).
  - `launch_args` string — Launch arguments for creating instances.
  - `gpu_ram` number — Estimated GPU RAM requirement.
  - `endpoint_name` string — Deployment endpoint name.
  - `endpoint_id` integer — Deployment endpoint ID.

## Response `200`

Successfully updated the workergroup.

- object
  - `success` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/versions/4ed14f79f796/schema)
