updateGroup

abstract fun updateGroup(    groupId: String?,     @Size(min = 0, max = 255) name: String?,     @Size(min = 0, max = 255) description: String?,     listener: RainbowListener<Group, Unit>?)

Updates the details of an existing group.

This method allows you to update the information of a specific group identified by the given groupId. You can modify the group's name and description with new values. Upon success, the group details are refreshed in the groups property.

If the groupId is null or empty, or if the name and description do not meet the specified length constraints (0 to 255 characters), the method returns immediately, and the listener's onError method is triggered with an appropriate error message.

If the update is successful, the listener's onSuccess method is called with the updated Group object.

Parameters

groupId

The unique identifier of the group to update. If null or empty, the method returns immediately, and the listener's onError method is called.

name

The new name for the group. Must be between 0 and 255 characters in length. Can be null if no change is needed.

description

The new description for the group. Must be between 0 and 255 characters in length. Can be null if no change is needed.

listener

A RainbowListener that will be notified with the result of the update operation.