Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
Update Group
In other words, as a group owner, how can I update the group details? You can update the existing details of the group using theupdateGroup() method. Pass a Group object with the updated values.
Parameters
| Parameter | Type | Description |
|---|---|---|
group | Group | An instance of the Group class with updated values |
onSuccess | Function(Group group)? | Callback triggered on successful group update |
onError | Function(CometChatException excep)? | Callback triggered on error |
- Dart
Response
Response
On Success — A
Group object containing all details of the updated group:Group Object:| Parameter | Type | Description | Sample Value |
|---|---|---|---|
guid | string | Unique identifier for the group | "cometchat-guid-1" |
name | string | Display name of the group | "Hello Group!" |
icon | string | URL of the group icon | null |
description | string | Description of the group | null |
membersCount | number | Number of members in the group | 5 |
metadata | object | Custom metadata attached to the group | {} |
joinedAt | number | Epoch timestamp when the logged-in user joined the group | 1745554729 |
hasJoined | boolean | Whether the logged-in user has joined the group | true |
createdAt | number | Epoch timestamp when the group was created | 1745554729 |
owner | string | UID of the group owner | "cometchat-uid-1" |
updatedAt | number | Epoch timestamp when the group was last updated | 1745554800 |
tags | array | List of tags associated with the group | [] |
type | string | Type of the group (public, private, password) | "public" |
scope | string | Scope of the logged-in user in the group | "admin" |
password | string | Password for password-protected groups | null |
isBannedFromGroup | boolean | Whether the logged-in user is banned from the group | false |
Error
Error
| Parameter | Type | Description | Sample Value |
|---|---|---|---|
code | string | Error code identifier | "ERR_GUID_NOT_FOUND" |
message | string | Human-readable error message | "The specified group does not exist." |
details | string | Additional technical details | "Please provide a valid GUID for the group." |
Group class containing updated information of the group.
For more information on the Group class, please check here.
There is no real-time event listener for group updates. To get the latest group information after calling
updateGroup(), fetch the group details again using getGroup().Next Steps
Delete Group
Permanently delete a group
Retrieve Groups
Fetch and filter groups with pagination
Create Group
Create new public, private, or password-protected groups
Groups Overview
Overview of all group management features