Classic APIs
ClassicGroupsApi
declineGroupRelationshipRequest

declineGroupRelationshipRequest

Declines a group relationship request.

Parameters

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

Example

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

Endpoint

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