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"
]
This endpoint allows you to add new enterprise groups to your organization.
If you pass an empty array, it will return all current IDP groups without adding any new ones.

Body

group_names
array
required
Array of strings of group names to add

Response

Returns a list of all group names after the addition.
response
array
required
Array of strings of all group names in the enterprise after adding the new 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"
]