Search.../
  1. REST
Generate a test token to explore our APIs

Approve Join Group Requests

Developer Preview

Approves pending join group requests. Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well.

Syntax

function ApproveJoin Group Requests(groupId: string, siteMemberIds: array<string>, memberIds: array<string>): ApproveJoinGroupRequests<_wix_social_groups_api_v2_ApproveJoinGroupRequestsResponse>

Approve Join Group Requests Parameters

NAME
TYPE
DESCRIPTION
groupId
Required
string

Relevant group.

siteMemberIds
Deprecated
Array<string>

Deprecated. Use memberIds instead. This parameter will be removed on June 30, 2022.

Required if memberIds is not provided.

memberIds
Array<string>

Member IDs to approve.

Important: This parameter will be required after the deprecated siteMemberIds is removed on June 30, 2022.

Returns

Return Type:

object
NAME
TYPE
DESCRIPTION
joinGroupRequests
Array<object>

Approved join group requests.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 https://wixapis.com/social-groups/v2/groups/a4caf853-c0d7-498e-8eaa-3db36522dcbf/join-requests/approve \
3 -H 'Content-Type: application/json;charset=UTF-8' \
4 -H 'Authorization: <AUTH>'
5 -d '{
6 "siteMemberIds": [
7 "e6674661-f294-4f1f-9f22-bc11fa8164e7"
8 ]
9 }'

Response

json

1{"joinGroupRequests": [{
2 "siteMemberId": "e6674661-f294-4f1f-9f22-bc11fa8164e7",
3 "status": "APPROVED"
4}]}