---
id: gk-query-filters-auto-endpoint-threshold
title: "Filter - gk/query-filters/auto-endpoint-threshold"
sidebar_label: "gk/query-filters/auto-endpoint-threshold"
tags:
  - "2.12.0"
---

# Filter: gk/query-filters/auto-endpoint-threshold

Filter the maximum number of items a field's static `values` list may hold before its `auto_endpoint` hint takes over and swaps the list for an async endpoint.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $threshold | `int` | The auto-switch threshold. |

### Since

- 2.12.0

### Source

Defined in `src/Rest/Endpoint/EndpointRegistry.php` at line 224

