Enrutador Django DRF inverso con kwargs

class API(ModelViewSet):

    @action(detail=True, methods=['post'], )
    def invite_users(self, request, pk=None):
        chat_group = self.get_object()
        

invite_users_url = reverse('group-detail', kwargs={'pk':group_id, 'format':'invite_users'},)

quiero path/pk/invite_userspero tengo

NoReverseMatch: Reverse for 'group-detail' with keyword arguments 
'{'pk': 'SvY9aA1SK6ok', 'format': 'invite_users'}
Answer