> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-audit-content-webhooks.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update A Group

> Update A Group — CometChat documentation.

*In other words, as a group owner, how can I update the group details?*

You can update the existing details of the group using the `updateGroup()` method.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    String GUID = "GUID";
    String groupName = "Hello Group!";
    String groupType = CometChatGroupType.public;
    String password = "";

    CometChat.updateGroup(guid: GUID,groupName: groupName,groupType: groupType,password: password ,
                          onSuccess: (Group group) {
                            debugPrint("Group Updated Successfully : $group");
                          },
                          onError: (CometChatException e) {
                            debugPrint("Group Updated failed with exception: ${e.message}");
                        });
    ```
  </Tab>
</Tabs>

This method takes an instance of the `Group` class as a parameter which should contain the data that you wish to update.

| Parameter | Description                  |
| --------- | ---------------------------- |
| `group`   | an instance of class `Group` |

After the successful update of the group, you will receive an instance of `Group` class containing updated information of the group.

For more information on the `Group` class, please check [here](/sdk/flutter/3.0/groups-create-group#group-class)
