---
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.

## Changes

> 15 revisions in range; 1 could not be searched.

- **2022-10-04** `111e8df6206d` — 1 breaking
  - added the new required `header` request parameter `Bearer authorization` to all path's operations
- **2021-11-26** `57efbcb25619` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2021-08-25** `c2a7000136b8` — 1 breaking
  - removed the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/orb-community/apis/orb-fleet/changes/agent_groups/validate/post.md)

---

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