Skip to content

Commit 0e58bb8

Browse files
MeelahMejstirnaman
andauthored
Update content/shared/influxdb3-admin/distinct-value-cache/query.md
Co-authored-by: Jason Stirnaman <[email protected]>
1 parent 7140e46 commit 0e58bb8

File tree

1 file changed

+5
-1
lines changed
  • content/shared/influxdb3-admin/distinct-value-cache

1 file changed

+5
-1
lines changed

content/shared/influxdb3-admin/distinct-value-cache/query.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ WHERE
3434

3535
## Use the HTTP API
3636

37-
You can query cached data using the [InfluxDB v3 SQL query API](/influxdb3/version/api/v3/). Send a `POST` request to the `/api/v3/query_sql` endpoint.
37+
To use the HTTP API to query cached data, send a `GET` or `POST` request to the `/api/v3/query_sql` endpoint and include the [`distinct_cache()`](/influxdb3/version/reference/sql/functions/cache/#distinct_cache) function in your query.
38+
39+
{{% api-endpoint method="GET" endpoint="/api/v3/query_sql" api-ref="/influxdb3/version/api/v3/#operation/GetExecuteQuerySQL" %}}
40+
41+
{{% api-endpoint method="POST" endpoint="/api/v3/query_sql" api-ref="/influxdb3/version/api/v3/#operation/PostExecuteQuerySQL" %}}
3842

3943
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN|TABLE_NAME|CACHE_NAME" %}}
4044

0 commit comments

Comments
 (0)