updateGroup
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
The unique identifier of the group to update. If null or empty, the method returns immediately, and the listener's onError
method is called.
The new name for the group. Must be between 0 and 255 characters in length. Can be null if no change is needed.
The new description for the group. Must be between 0 and 255 characters in length. Can be null if no change is needed.
A RainbowListener that will be notified with the result of the update operation.