## Update group

`GroupUpdateResponse admin().organization().groups().update(GroupUpdateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())`

**post** `/organization/groups/{group_id}`

Updates a group's information.

### Parameters

- `GroupUpdateParams params`

  - `Optional<String> groupId`

  - `String name`

    New display name for the group.

    `minLength: 1`, `maxLength: 255`

### Returns

- `class GroupUpdateResponse:`

  Response returned after updating a group.

  - `String id`

    Identifier for the group.

  - `long createdAt`

    Unix timestamp (in seconds) when the group was created.

    `format: unixtime`

  - `boolean isScimManaged`

    Whether the group is managed through SCIM and controlled by your identity provider.

  - `String name`

    Updated display name for the group.

### Example

```java
package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.groups.GroupUpdateParams;
import com.openai.models.admin.organization.groups.GroupUpdateResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        GroupUpdateParams params = GroupUpdateParams.builder()
            .groupId("group_id")
            .name("x")
            .build();
        GroupUpdateResponse group = client.admin().organization().groups().update(params);
    }
}
```

#### 200 — Example

```json
{
  "id": "id",
  "created_at": 0,
  "is_scim_managed": true,
  "name": "name"
}
```
