POST
/
v2
/
enterprise
/
organizations
/
{org_id}
/
groups
curl -X POST "https://api.devin.ai/v2/enterprise/organizations/org_123/groups" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "group_name": "Engineering",
    "role": "admin"
  }'
{
  "group_name": "Engineering",
  "org_id": "org_123",
  "role": "admin"
}
Adds an enterprise IdP (Identity Provider) group to a specific organization with a specified role.
IdP groups must be explicitly enabled for your enterprise and are only supported for some enterprise SSO connections. Contact your administrator to enable group support.

Path Parameters

org_id
string
required
The unique identifier of the organization to add the group to

Request Body

group_name
string
required
Name of the group to add to the organization
role
string
required
Role for the group within the organization. Must be either “admin” or “member”

Response

group_name
string
required
Name of the group
org_id
string
required
Unique identifier for the organization
role
string
required
Role of the group within the organization (admin or member)
curl -X POST "https://api.devin.ai/v2/enterprise/organizations/org_123/groups" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "group_name": "Engineering",
    "role": "admin"
  }'
{
  "group_name": "Engineering",
  "org_id": "org_123",
  "role": "admin"
}