跳转到主要内容
PUT
/
v2
/
enterprise
/
groups
curl -X PUT "https://api.devin.ai/v2/enterprise/groups" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "group_names": ["Engineering", "Product"]
  }'
[
  "Engineering",
  "Product", 
  "Marketing",
  "Sales",
  "Support"
]
此端点允许您向组织添加新的企业组。
如果您传入一个空数组,将在不添加任何新组的情况下返回当前所有 IDP 组。

请求正文

group_names
array
required
要添加的组名字符串数组

响应

返回添加后所有群组名称的列表。
response
array
required
添加新群组后,企业内所有群组名称的字符串数组
curl -X PUT "https://api.devin.ai/v2/enterprise/groups" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "group_names": ["Engineering", "Product"]
  }'
[
  "Engineering",
  "Product", 
  "Marketing",
  "Sales",
  "Support"
]