Classic APIs
ClassicGroupsApi
groupRelationshipRequests

groupRelationshipRequests

Gets relationship requests.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group.
groupRelationshipTypeGroupRelationshipTypeThe group relationship type, "Enemies" or "Allies".
maxRows?numberThe maximum number of rows for the page request, should be at least 1.
startRowIndex?numberThe start index of the page request.

Example

const { data: relationshipRequests, cursors } = await ClassicGroupsApi.groupRelationshipRequests({
  groupId: 5850082,
  groupRelationshipType: "Allies",
  maxRows: 1,
}); 

Example Data

{
  groupId: 5850082,
  relationshipType: "Allies",
  totalGroupCount: 2,
  relatedGroups: [
    {
      id: 50,
      name: "Lorem Ipsum",
      description: "Hello World",
      owner: {
        hasVerifiedBadge: false,
        userId: 45348281,
        username: "MightyPart",
        displayName: "MightyPart",
      },
      shout: null,
      memberCount: 38,
      isBuildersClubOnly: false,
      publicEntryAllowed: true,
      hasVerifiedBadge: false,
    },
  ],
} 

Endpoint

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