Classic APIs
ClassicGroupsApi
batchAcceptGroupRelationshipRequests

batchAcceptGroupRelationshipRequests

Batch accepts relationship requests.

Parameters

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

Example

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

Endpoint

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