Skip to main content
Version: 5.15.0

Update

public BackendReturnObject Update(string groupUuid, string groupName);

Parameters

ValueTypeDescription
groupUuidstringUUID of group to change
groupNamestringName of group to change

Description

Changes the group you belong to.

  • Group change is unavailable for guild masters unless they leave their guilds.
  • In the case of guild members, they are forced to leave their guilds.
  • When an attempt is made to change to the same group you already belong to, 204 Success is called.

Example

Synchronous

BackEnd.Group.BackendGroupReturnObject tableBro = Backend.Group.Table.Get();
BackEnd.Group.GroupItem group = tableBro.GetGroupList()[0];
var bro = Backend.Group.Update(group.groupUuid, group.groupName);

if(bro.IsSuccess() == false)
{
Debug.LogError(bro);
}

Asynchronous

Backend.Group.GetGroupList(bro => {

BackEnd.Group.GroupItem group = tableBro.GetGroupList()[0];

Backend.Group.Update(group.groupUuid, group.groupName, callback => {

if(callback.IsSuccess() == false)
{
Debug.LogError(callback);
}

});
});


ReturnCase

Success cases

When the group change is successful
statusCode : 204
message : Success

Error cases

When the entered group's information does not match
StatusCode : 400
ErrorCode : BadParameterException
Message : group not exist

When the groupUuid is string.Empty or 'null' StatusCode : 400
ErrorCode : ValidationException
Message : groupUuid is null or string.Empty

When the guild master user attempts change
StatusCode : 400
ErrorCode : BadParameterException
Message : guild master can not change group