---
title: "Validate an Agent Group configuration without saving it"
method: POST
path: "/agent_groups/validate"
tags: ["agent_groups"]
---

# Validate an Agent Group configuration without saving it

`POST /agent_groups/validate`

## Request body

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

## Response `200`

Agent Group object

- AgentGroupsValidateObjSchema
  - `name` string — A unique name label
  - `tags` object — User defined key/values that will define the members of the group by matching against Agent tags
  - `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.
- `415` — Missing or invalid content type.
- `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/revisions/53154347a3c8/schema)
