---
title: "Update an existing Agent Group"
method: PUT
path: "/agent_groups/{id}"
tags: ["agent_groups"]
---

# Update an existing Agent Group

`PUT /agent_groups/{id}`

## Request body

- AgentGroupUpdateReqSchema
  - `name` string — A unique name label
  - `description` string — User description of this Agent Group
  - `tags` object — User defined key/values that will define the members of the group by matching against Agent tags

## Response `200`

Agent Group object

- AgentGroupsObjSchema
  - `id` string, uuid, required — Unique identifier (UUID)
  - `name` string — A unique name label
  - `description` string — User description of this Agent Group
  - `tags` object — User defined key/values that will define the members of the group by matching against Agent tags
  - `ts_created` string, date-time — Timestamp of creation
  - `matching_agents` object — Counts of agents currently matching this group
    - `total` integer — total agents matching
    - `online` integer — total agents matching which are currently online

## Other responses

- `400` — Failed due to malformed JSON.
- `401` — Missing or invalid access token provided.
- `422` — Database can't process request.
- `500` — Unexpected server-side error occurred.

---

[API](https://skmtc.net/orb-community/apis/orb-fleet.md) · [All operations](https://skmtc.net/orb-community/apis/orb-fleet/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orb-community/orb-fleet/versions/53154347a3c8/schema)
