Classic APIs
ClassicGroupsApi
acceptGroupRelationshipRequest

acceptGroupRelationshipRequest

Accepts a group relationship request.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to accept for.
groupRelationshipTypeGroupRelationshipTypeThe type of group relationship to accept.
relatedGroupIdIdentifierThe id of the group to accept a relationship with.

Example

const { data: success } = await ClassicGroupsApi.acceptGroupRelationshipRequest({
  groupId: 5850082,
  groupRelationshipType: "Allies",
  relatedGroupId: 3843784,
}); 

Endpoint

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