---
title: "创建分组"
method: POST
path: "/api/v1/things/group/info/create"
tags: ["things/group/info", "thingsGroupInfo"]
---

# 创建分组

`POST /api/v1/things/group/info/create`

## Request body

- GroupInfo
  - `areaID` string — 区域ID
  - `children` GroupInfo[]
  - `createdTime` string — 创建时间
  - `desc` string — 分组描述
  - `deviceCount` integer — 设备数量统计
  - `devices` DeviceCore[] — withDevices=true 时返回分组下设备核心信息
    - `deviceName` string, required — 设备名称
    - `productID` string, required — 产品ID
    - `productName` string
  - `files` object — key 是用途, value是文件的路径,
  - `id` integer — 分组ID
  - `idPath` string — 分组ID路径
  - `isLeaf` integer
  - `name` string — 分组名称
  - `parentID` integer — 父组ID
  - `productID` string — 产品ID
  - `productName` string — 产品ID
  - `projectID` string — 项目ID
  - `purpose` string — 用途 不填默认为default
  - `tags` Tag[] — 分组tag
    - `key` string, required
    - `value` string, required

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` WithID
    - `id` integer — id
  - `msg` string

---

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