Classic APIs
ClassicGroupsApi
declineGroupJoinRequest

declineGroupJoinRequest

Declines a join request.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to decline a join request for.
userIdIdentifierThe id of the user to decline.

Example

const { data: success } = await ClassicGroupsApi.declineGroupJoinRequest({ groupId: 5850082, userId: 2655994471 }); 

Endpoint

DELETE /v1/groups/{groupId}/join-requests/users/${userId}