def METHOD_NAME(self, request, format=None):
    if not request.user.admin_permissions.other_permission():
        return api_error(status.HTTP_403_FORBIDDEN, 'Permission denied.')
    new_ip = request.data.get('ipaddress', '')
    TrustedIP.objects.METHOD_NAME(new_ip)
    return Response({})