From 8264b61d135dced2e7de129bca9ee5e8d2fc5dd3 Mon Sep 17 00:00:00 2001 From: meelahme Date: Tue, 18 Feb 2025 12:25:31 -0800 Subject: [PATCH] Core: update to Random numbers sample data --- content/shared/influxdb3-sample-data/sample-data.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/content/shared/influxdb3-sample-data/sample-data.md b/content/shared/influxdb3-sample-data/sample-data.md index 55eaf064b..98a079bbc 100644 --- a/content/shared/influxdb3-sample-data/sample-data.md +++ b/content/shared/influxdb3-sample-data/sample-data.md @@ -608,12 +608,13 @@ transformation functions. #### Write the random number sample data to InfluxDB -Use the `influxdb3` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the +Use the `influxdb3` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the random number sample data to {{< product-name >}}. {{< code-tabs-wrapper >}} {{% code-tabs %}} [influxdb3](#) +[v3 API](#) [v2 API](#) [v1 API](#) {{% /code-tabs %}} @@ -631,6 +632,16 @@ influxdb3 write \ {{% /code-tab-content %}} {{% code-tab-content %}} +{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}} +```sh +curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \ + --data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp)" +``` +{{% /code-placeholders %}} + +{{% /code-tab-content %}} +{{% code-tab-content %}} + {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}} ```sh curl --request POST \