> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# EnterpriseOrgGroupsClient

## Constructor

```typescript
EnterpriseOrgGroupsClient(options: BaseClientOptions): OrgGroupsClient
```

### Parameters

**options** `BaseClientOptions` *required*

### Returns

`OrgGroupsClient`

## Methods

### getOrgGroupsConfig()

```typescript
getOrgGroupsConfig(requestOptions?: RequestOptions): HttpResponsePromise<OrgGroupsConfig>
```

Get the current organization groups configuration.

```ts
await client.enterprise.orgGroups.getOrgGroupsConfig()
```

#### Parameters

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<OrgGroupsConfig>`

### updateOrgGroupsConfig()

```typescript
updateOrgGroupsConfig(request: OrgGroupsConfig, requestOptions?: RequestOptions): HttpResponsePromise<OrgGroupsConfig>
```

Update the organization groups configuration.

This endpoint replaces the entire org groups configuration with the provided config.

* Groups not in the request will be deleted
* Groups in the request will be created or updated to match the config

```ts
await client.enterprise.orgGroups.updateOrgGroupsConfig({
        groups: {
            "key": {
                org_ids: ["org_ids"]
            }
        }
    })
```

#### Parameters

**request** `OrgGroupsConfig` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<OrgGroupsConfig>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.