# 组织 Organizations

> CNB 组织模块提供了组织管理的接口。

## 概述

组织模块用于创建和管理组织、群组。

## 接口列表

### 组织相关接口

<table>
<thead>
  <tr>
    <th>
      接口
    </th>
    
    <th>
      方法
    </th>
    
    <th>
      描述
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      /groups
    </td>
    
    <td>
      POST
    </td>
    
    <td>
      创建新组织
    </td>
  </tr>
</tbody>
</table>

## 使用示例

```bash
# 创建新组织
curl -X POST "https://api.cnb.cool/groups" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-org",
    "path": "my-org"
  }'
```

## 注意事项

- 创建组织需要 group-manage:rw 权限
- 组织路径必须唯一
