Classic APIs
ClassicGroupsApi
batchDeclineGroupRelationshipRequests

batchDeclineGroupRelationshipRequests

Batch declines relationship requests.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to batch decline relationship requests for.
groupRelationshipTypeGroupRelationshipTypeThe type of group relationship to batch decline for.
groupIdsIdentifier[]The ids of the groups to decline.

Example

const { data: success } = await ClassicGroupsApi.batchDeclineGroupRelationshipRequests({
  groupId: 5850082,
  groupRelationshipType: "Allies",
  groupIds: [15842838],
}); 

Endpoint

DELETE /v1/groups/{groupId}/relationships/{groupRelationshipType}/requests