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.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Social Groups permission scope.

POST

https://www.wixapis.com/social-groups/v2/groups/{groupId}/join-requests/approve

Path Params

NAME
TYPE
DESCRIPTION
groupId
Required
string

Relevant group.

Body Params

NAME
TYPE
DESCRIPTION
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.

Response Object

NAME
TYPE
DESCRIPTION
joinGroupRequests
Array<object>

Approved join group requests.

Status/Error Codes

The response will include an HTTP status code.

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}]}