---
title: "create a parameter group"
method: POST
path: "/param-groups/"
tags: ["parameter group"]
---

# create a parameter group

`POST /param-groups/`

create a parameter group

## Request body

- MessageCreateParameterGroupReq
  - `addParams` MessageParameterInfo[]
    - `category` string
    - `defaultValue` string
    - `description` string
    - `hasApply` 0 | 1
    - `hasReboot` 0 | 1
    - `instanceType` string
    - `name` string
    - `note` string
    - `range` string[]
    - `rangeType` 0 | 1 | 2
    - `readOnly` 0 | 1
    - `systemVariable` string
    - `type` 0 | 1 | 2 | 3 | 4
    - `unit` string
    - `unitOptions` string[]
    - `updateSource` 0 | 1 | 2 | 3 | 4
  - `clusterSpec` string, required
  - `clusterVersion` string, required
  - `dbType` 1 | 2, required
  - `groupType` 1 | 2, required
  - `name` string, required
  - `note` string
  - `params` StructsParameterGroupParameterSampleInfo[], required
    - `defaultValue` string, required
    - `note` string
    - `paramId` string, required

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `paramGroupId` string
  - `message` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
