---
title: "Assign configuration group to hosts"
method: PUT
path: "/agent/setting/config-groups/{groupName}"
tags: ["AGENT PRIVATE ROUTES"]
---

# Assign configuration group to hosts

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

This API associates one or more hosts with a given configuration group (also known as a config class).

## Path parameters

- `groupName` string, required

## Query parameters

- `agent_type` string

## Request body

- object

## Response `200`

Updated host configuration details

- AgentAgentSettingModels[]
  - `account_id` integer
  - `config` object
  - `config_null` object
  - `created_at` string
  - `group_id` SqlNullInt64
    - `int64` integer
    - `valid` boolean — Valid is true if Int64 is not NULL
  - `host_id` string
  - `id` integer
  - `meta_data` object
  - `meta_data_null` object
  - `project_id` integer
  - `token` string
  - `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)
