---
title: "Create group"
method: POST
path: "/group"
tags: ["Group"]
---

# Create group

`POST /group`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/group`
- Auth: none declared. Required headers: `X-Auth-Token`
- TypeScript: <https://skmtc.dev/neuvector/apis/neuvector-api/docs/group/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `X-Auth-Token` string, required

## Request body

- RESTGroupConfigData
  - `config` RESTGroupConfig, required
    - `name` string, required
    - `criteria` RESTCriteriaEntry[]
      - `key` string, required
      - `value` string, required
      - `op` string, required
    - `cfg_type` string, required

## Response `200`

Success

## Other responses

- `400`: Error

---

[API](https://skmtc.dev/neuvector/apis/neuvector-api.md) - [All operations](https://skmtc.dev/neuvector/apis/neuvector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neuvector/apis/neuvector-api/revisions/b8d8d28840b3?raw)
