---
title: "Create or update configuration group"
method: POST
path: "/agent/setting/config-groups/{groupName}"
tags: ["AGENT PRIVATE ROUTES"]
---

# Create or update configuration group

`POST /agent/setting/config-groups/{groupName}`

This API creates a new configuration group or updates an existing one with provided settings and associated hosts.

## Path parameters

- `groupName` string, required

## Request body

- object

## Response `200`

Saved configuration group details

- AgentSaveHostResponse
  - `account_id` integer
  - `agent_type` 'host' | 'k8s' | 'serverless'
  - `config` object
  - `config_null` object
  - `created_at` string
  - `hostIds` string[]
  - `id` integer
  - `meta_data` object
  - `meta_data_null` object
  - `name` string
  - `project_id` integer
  - `updated_at` string

## Other responses

- `400` — Invalid request body or agent type
- `401` — Unauthorized or invalid token
- `500` — Internal server error

---

[API](https://skmtc.net/middleware/apis/middleware-api.md) · [All operations](https://skmtc.net/middleware/apis/middleware-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/middleware/middleware-api/revisions/614091456d31/schema)
