Skip to main content
Version: 5.7.0

ApproveGroupJoinRequest

Approve an outstanding request to join the group. Optional parameters: jsonAttributes.

// Example group join request:
"data":{
...
"pendingMembers":{
"4a4f2434-2324-4a22-b61e-7e5b60da1575":{
"role":"MEMBER",
"attributes":{
},
"pendingReason":"ASKED_TO_JOIN"
}
},
...
}
ServiceOperation
groupAPPROVE_GROUP_JOIN_REQUEST

Method Parameters

ParameterDescription
groupIdID of the group
profileIdProfile ID of the member being added
roleRole of the member being added
jsonAttributesAttributes of the member being added

Usage

http://localhost:3000
string groupId = <%= data.example.groupId %>;
string profileId = <%= data.example.profileId %>;
BrainCloudGroup.Role role = BrainCloudGroup.Role.MEMBER;
string jsonAttributes = <%= data.example.jsonAttributes %>;

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("[ApproveGroupJoinRequest Success] {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.GroupService.ApproveGroupJoinRequest(
groupId,
profileId,
role,
jsonAttributes,
successCallback,
failureCallback);
JSON Response
{
"status": 200,
"data": null
}