Skip to main content
Quick Reference for AI Agents & Developers
  • Update group: CometChat.updateGroup(group:onSuccess:onError:)
  • Updatable fields: name, description, icon, metadata, tags
  • Permission: Only group owner or admin can update
  • Related: Create Group · Delete Group · Groups Overview

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 the updateGroup() method.
This method takes an instance of the Group class as a parameter that should contain the data that you wish to update. After a successful update of the group, you will receive an instance of the Group class containing update information of the group.
Method Signature:Group Object (Input):Updatable Properties:Non-Updatable Properties:Prerequisites:
Success Callback Parameter:Updated Group Object:GroupType Enum Values:MemberScope Enum Values:Real-time Event Triggered:
Error Callback Parameter:CometChatException Object:Common Error Codes:Error Response Example (Not a Member):Error Response Example (Permission Denied):Error Response Example (Group Not Found):
Method Signature:Request Parameters:Use Case:
Error Callback Parameter:Error Response Example:Common getGroup() Error Codes:

Real-time Events

When a group is updated, all members receive the onGroupUpdated event via CometChatGroupDelegate:
Delegate Method Parameters:ActionMessage Object:updatedBy User Object: