From d37612dc90e9e317b9843dddd0869f42d8655c45 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Thu, 8 Sep 2022 16:44:01 -0600 Subject: [PATCH] Correct /write and /query endpoints (#4439) * correct /write and /query endpoints, closes influxdata/DAR#325 * update /write endpoints in cloud docs --- .../cloud/write-data/best-practices/optimize-writes.md | 2 +- content/influxdb/cloud/write-data/developer-tools/api.md | 6 +++--- content/influxdb/v2.0/api-guide/api_intro.md | 4 ++-- content/influxdb/v2.0/reference/internals/storage-engine.md | 2 +- .../v2.0/write-data/best-practices/optimize-writes.md | 4 ++-- content/influxdb/v2.0/write-data/developer-tools/api.md | 6 +++--- content/influxdb/v2.1/api-guide/api_intro.md | 4 ++-- content/influxdb/v2.1/reference/internals/storage-engine.md | 2 +- .../v2.1/write-data/best-practices/optimize-writes.md | 2 +- content/influxdb/v2.1/write-data/developer-tools/api.md | 6 +++--- content/influxdb/v2.2/api-guide/api_intro.md | 4 ++-- content/influxdb/v2.2/reference/internals/storage-engine.md | 2 +- .../v2.2/write-data/best-practices/optimize-writes.md | 4 ++-- content/influxdb/v2.2/write-data/developer-tools/api.md | 6 +++--- content/influxdb/v2.3/api-guide/api_intro.md | 4 ++-- content/influxdb/v2.3/reference/internals/storage-engine.md | 2 +- .../v2.3/write-data/best-practices/optimize-writes.md | 2 +- content/influxdb/v2.3/write-data/developer-tools/api.md | 6 +++--- content/influxdb/v2.4/api-guide/api_intro.md | 4 ++-- content/influxdb/v2.4/reference/internals/storage-engine.md | 2 +- .../v2.4/write-data/best-practices/optimize-writes.md | 2 +- content/influxdb/v2.4/write-data/developer-tools/api.md | 6 +++--- 22 files changed, 41 insertions(+), 41 deletions(-) diff --git a/content/influxdb/cloud/write-data/best-practices/optimize-writes.md b/content/influxdb/cloud/write-data/best-practices/optimize-writes.md index ec0feaace..410473247 100644 --- a/content/influxdb/cloud/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/cloud/write-data/best-practices/optimize-writes.md @@ -91,7 +91,7 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in {{% tab-content %}} ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh diff --git a/content/influxdb/cloud/write-data/developer-tools/api.md b/content/influxdb/cloud/write-data/developer-tools/api.md index 718a64018..21aabb28e 100644 --- a/content/influxdb/cloud/write-data/developer-tools/api.md +++ b/content/influxdb/cloud/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_cloud: parent: Developer tools name: Write API --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -43,7 +43,7 @@ The URL in the examples depends on your [InfluxDB Cloud region](/influxdb/cloud/ {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load. diff --git a/content/influxdb/v2.0/api-guide/api_intro.md b/content/influxdb/v2.0/api-guide/api_intro.md index 0981a64ff..a167cb965 100644 --- a/content/influxdb/v2.0/api-guide/api_intro.md +++ b/content/influxdb/v2.0/api-guide/api_intro.md @@ -68,8 +68,8 @@ Before writing data you'll need to create a Bucket in InfluxDB. ## Write API -[Write data to InfluxDB](/influxdb/v2.0/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/write` endpoint. +[Write data to InfluxDB](/influxdb/v2.0/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. ## Query API -[Query from InfluxDB](/influxdb/v2.0/query-data/execute-queries/influx-api/) using an HTTP request to the `/query` endpoint. +[Query from InfluxDB](/influxdb/v2.0/query-data/execute-queries/influx-api/) using an HTTP request to the `/api/v2/query` endpoint. diff --git a/content/influxdb/v2.0/reference/internals/storage-engine.md b/content/influxdb/v2.0/reference/internals/storage-engine.md index 27c9b20c3..6ce5c83fa 100644 --- a/content/influxdb/v2.0/reference/internals/storage-engine.md +++ b/content/influxdb/v2.0/reference/internals/storage-engine.md @@ -30,7 +30,7 @@ The storage engine includes the following components: ## Writing data from API to disk The storage engine handles data from the point an API write request is received through writing data to the physical disk. -Data is written to InfluxDB using [line protocol](/influxdb/v2.0/reference/syntax/line-protocol/) sent via HTTP POST request to the `/write` endpoint. +Data is written to InfluxDB using [line protocol](/influxdb/v2.0/reference/syntax/line-protocol/) sent via HTTP POST request to the `/api/v2/write` endpoint or the [`/write` 1.x compatibility endpoint](/influxdb/v2.0/reference/api/influxdb-1x/). Batches of [points](/influxdb/v2.0/reference/glossary/#point) are sent to InfluxDB, compressed, and written to a WAL for immediate durability. Points are also written to an in-memory cache and become immediately queryable. The in-memory cache is periodically written to disk in the form of [TSM](#time-structured-merge-tree-tsm) files. diff --git a/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md index b42850b42..9c09e4bfd 100644 --- a/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md @@ -93,8 +93,8 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` -header to `gzip`. +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the +data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh {{% get-shared-text "api/v2.0/write/write-compress.sh" %}} diff --git a/content/influxdb/v2.0/write-data/developer-tools/api.md b/content/influxdb/v2.0/write-data/developer-tools/api.md index f3ece9c3d..3fd1f86da 100644 --- a/content/influxdb/v2.0/write-data/developer-tools/api.md +++ b/content/influxdb/v2.0/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_2_0: name: InfluxDB API parent: Developer tools --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -44,7 +44,7 @@ The URL in the examples depends on the version and location of your InfluxDB 2.0 {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load. diff --git a/content/influxdb/v2.1/api-guide/api_intro.md b/content/influxdb/v2.1/api-guide/api_intro.md index d75bc3eb3..16a455236 100644 --- a/content/influxdb/v2.1/api-guide/api_intro.md +++ b/content/influxdb/v2.1/api-guide/api_intro.md @@ -68,8 +68,8 @@ Before writing data you'll need to create a Bucket in InfluxDB. ## Write API -[Write data to InfluxDB](/influxdb/v2.1/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/write` endpoint. +[Write data to InfluxDB](/influxdb/v2.1/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. ## Query API -[Query from InfluxDB](/influxdb/v2.1/query-data/execute-queries/influx-api/) using an HTTP request to the `/query` endpoint. +[Query from InfluxDB](/influxdb/v2.1/query-data/execute-queries/influx-api/) using an HTTP request to the `/api/v2/query` endpoint. diff --git a/content/influxdb/v2.1/reference/internals/storage-engine.md b/content/influxdb/v2.1/reference/internals/storage-engine.md index 0fa480618..1dff70cb6 100644 --- a/content/influxdb/v2.1/reference/internals/storage-engine.md +++ b/content/influxdb/v2.1/reference/internals/storage-engine.md @@ -32,7 +32,7 @@ The storage engine includes the following components: ## Writing data from API to disk The storage engine handles data from the point an API write request is received through writing data to the physical disk. -Data is written to InfluxDB using [line protocol](/influxdb/v2.1/reference/syntax/line-protocol/) sent via HTTP POST request to the `/write` endpoint. +Data is written to InfluxDB using [line protocol](/influxdb/v2.1/reference/syntax/line-protocol/) sent via HTTP POST request to the `/api/v2/write` endpoint or the [`/write` 1.x compatibility endpoint](/influxdb/v2.1/reference/api/influxdb-1x/). Batches of [points](/influxdb/v2.1/reference/glossary/#point) are sent to InfluxDB, compressed, and written to a WAL for immediate durability. Points are also written to an in-memory cache and become immediately queryable. The in-memory cache is periodically written to disk in the form of [TSM](#time-structured-merge-tree-tsm) files. diff --git a/content/influxdb/v2.1/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.1/write-data/best-practices/optimize-writes.md index 152cdb627..377e61fe5 100644 --- a/content/influxdb/v2.1/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.1/write-data/best-practices/optimize-writes.md @@ -93,7 +93,7 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh diff --git a/content/influxdb/v2.1/write-data/developer-tools/api.md b/content/influxdb/v2.1/write-data/developer-tools/api.md index aee349c25..86e86194e 100644 --- a/content/influxdb/v2.1/write-data/developer-tools/api.md +++ b/content/influxdb/v2.1/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_2_1: name: InfluxDB API parent: Developer tools --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -44,7 +44,7 @@ The URL in the examples depends on the version and location of your InfluxDB {{< {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load. diff --git a/content/influxdb/v2.2/api-guide/api_intro.md b/content/influxdb/v2.2/api-guide/api_intro.md index acef91942..632c31618 100644 --- a/content/influxdb/v2.2/api-guide/api_intro.md +++ b/content/influxdb/v2.2/api-guide/api_intro.md @@ -68,8 +68,8 @@ Before writing data you'll need to create a Bucket in InfluxDB. ## Write API -[Write data to InfluxDB](/influxdb/v2.2/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/write` endpoint. +[Write data to InfluxDB](/influxdb/v2.2/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. ## Query API -[Query from InfluxDB](/influxdb/v2.2/query-data/execute-queries/influx-api/) using an HTTP request to the `/query` endpoint. +[Query from InfluxDB](/influxdb/v2.2/query-data/execute-queries/influx-api/) using an HTTP request to the `/api/v2/query` endpoint. diff --git a/content/influxdb/v2.2/reference/internals/storage-engine.md b/content/influxdb/v2.2/reference/internals/storage-engine.md index 47acfced2..4c61e4c4f 100644 --- a/content/influxdb/v2.2/reference/internals/storage-engine.md +++ b/content/influxdb/v2.2/reference/internals/storage-engine.md @@ -32,7 +32,7 @@ The storage engine includes the following components: ## Writing data from API to disk The storage engine handles data from the point an API write request is received through writing data to the physical disk. -Data is written to InfluxDB using [line protocol](/influxdb/v2.2/reference/syntax/line-protocol/) sent via HTTP POST request to the `/write` endpoint. +Data is written to InfluxDB using [line protocol](/influxdb/v2.2/reference/syntax/line-protocol/) sent via HTTP POST request to the `/api/v2/write` endpoint or the [`/write` 1.x compatibility endpoint](/influxdb/v2.2/reference/api/influxdb-1x/). Batches of [points](/influxdb/v2.2/reference/glossary/#point) are sent to InfluxDB, compressed, and written to a WAL for immediate durability. Points are also written to an in-memory cache and become immediately queryable. The in-memory cache is periodically written to disk in the form of [TSM](#time-structured-merge-tree-tsm) files. diff --git a/content/influxdb/v2.2/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.2/write-data/best-practices/optimize-writes.md index f679b6a2b..87574cbf9 100644 --- a/content/influxdb/v2.2/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.2/write-data/best-practices/optimize-writes.md @@ -93,8 +93,8 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` -header to `gzip`. +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the +data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh {{% get-shared-text "api/v2.0/write/write-compress.sh" %}} diff --git a/content/influxdb/v2.2/write-data/developer-tools/api.md b/content/influxdb/v2.2/write-data/developer-tools/api.md index 40810b839..228e8f313 100644 --- a/content/influxdb/v2.2/write-data/developer-tools/api.md +++ b/content/influxdb/v2.2/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_2_2: name: InfluxDB API parent: Developer tools --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -44,7 +44,7 @@ The URL in the examples depends on the version and location of your InfluxDB {{< {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load. diff --git a/content/influxdb/v2.3/api-guide/api_intro.md b/content/influxdb/v2.3/api-guide/api_intro.md index 55257316a..3709c7782 100644 --- a/content/influxdb/v2.3/api-guide/api_intro.md +++ b/content/influxdb/v2.3/api-guide/api_intro.md @@ -68,8 +68,8 @@ Before writing data you'll need to create a Bucket in InfluxDB. ## Write API -[Write data to InfluxDB](/influxdb/v2.3/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/write` endpoint. +[Write data to InfluxDB](/influxdb/v2.3/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. ## Query API -[Query from InfluxDB](/influxdb/v2.3/query-data/execute-queries/influx-api/) using an HTTP request to the `/query` endpoint. +[Query from InfluxDB](/influxdb/v2.3/query-data/execute-queries/influx-api/) using an HTTP request to the `/api/v2/query` endpoint. diff --git a/content/influxdb/v2.3/reference/internals/storage-engine.md b/content/influxdb/v2.3/reference/internals/storage-engine.md index 944c37599..acedc5f83 100644 --- a/content/influxdb/v2.3/reference/internals/storage-engine.md +++ b/content/influxdb/v2.3/reference/internals/storage-engine.md @@ -32,7 +32,7 @@ The storage engine includes the following components: ## Writing data from API to disk The storage engine handles data from the point an API write request is received through writing data to the physical disk. -Data is written to InfluxDB using [line protocol](/influxdb/v2.3/reference/syntax/line-protocol/) sent via HTTP POST request to the `/write` endpoint. +Data is written to InfluxDB using [line protocol](/influxdb/v2.3/reference/syntax/line-protocol/) sent via HTTP POST request to the `/api/v2/write` endpoint or the [`/write` 1.x compatibility endpoint](/influxdb/v2.3/reference/api/influxdb-1x/). Batches of [points](/influxdb/v2.3/reference/glossary/#point) are sent to InfluxDB, compressed, and written to a WAL for immediate durability. Points are also written to an in-memory cache and become immediately queryable. The in-memory cache is periodically written to disk in the form of [TSM](#time-structured-merge-tree-tsm) files. diff --git a/content/influxdb/v2.3/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.3/write-data/best-practices/optimize-writes.md index 2c930d509..fc4f60d91 100644 --- a/content/influxdb/v2.3/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.3/write-data/best-practices/optimize-writes.md @@ -93,7 +93,7 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh diff --git a/content/influxdb/v2.3/write-data/developer-tools/api.md b/content/influxdb/v2.3/write-data/developer-tools/api.md index 231e7d668..5c79638a2 100644 --- a/content/influxdb/v2.3/write-data/developer-tools/api.md +++ b/content/influxdb/v2.3/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_2_3: name: InfluxDB API parent: Developer tools --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -44,7 +44,7 @@ The URL in the examples depends on the version and location of your InfluxDB {{< {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load. diff --git a/content/influxdb/v2.4/api-guide/api_intro.md b/content/influxdb/v2.4/api-guide/api_intro.md index 2842b5b76..94e19d5c1 100644 --- a/content/influxdb/v2.4/api-guide/api_intro.md +++ b/content/influxdb/v2.4/api-guide/api_intro.md @@ -68,8 +68,8 @@ Before writing data you'll need to create a Bucket in InfluxDB. ## Write API -[Write data to InfluxDB](/influxdb/v2.4/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/write` endpoint. +[Write data to InfluxDB](/influxdb/v2.4/write-data/developer-tools/api/) using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. ## Query API -[Query from InfluxDB](/influxdb/v2.4/query-data/execute-queries/influx-api/) using an HTTP request to the `/query` endpoint. +[Query from InfluxDB](/influxdb/v2.4/query-data/execute-queries/influx-api/) using an HTTP request to the `/api/v2/query` endpoint. diff --git a/content/influxdb/v2.4/reference/internals/storage-engine.md b/content/influxdb/v2.4/reference/internals/storage-engine.md index 563835e06..aace0883c 100644 --- a/content/influxdb/v2.4/reference/internals/storage-engine.md +++ b/content/influxdb/v2.4/reference/internals/storage-engine.md @@ -32,7 +32,7 @@ The storage engine includes the following components: ## Writing data from API to disk The storage engine handles data from the point an API write request is received through writing data to the physical disk. -Data is written to InfluxDB using [line protocol](/influxdb/v2.4/reference/syntax/line-protocol/) sent via HTTP POST request to the `/write` endpoint. +Data is written to InfluxDB using [line protocol](/influxdb/v2.4/reference/syntax/line-protocol/) sent via HTTP POST request to the `/api/v2/write` endpoint or the [`/write` 1.x compatibility endpoint](/influxdb/v2.4/reference/api/influxdb-1x/). Batches of [points](/influxdb/v2.4/reference/glossary/#point) are sent to InfluxDB, compressed, and written to a WAL for immediate durability. Points are also written to an in-memory cache and become immediately queryable. The in-memory cache is periodically written to disk in the form of [TSM](#time-structured-merge-tree-tsm) files. diff --git a/content/influxdb/v2.4/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.4/write-data/best-practices/optimize-writes.md index 71a9529dd..ebf59675c 100644 --- a/content/influxdb/v2.4/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.4/write-data/best-practices/optimize-writes.md @@ -93,7 +93,7 @@ For specific instructions, see the [InfluxDB client libraries documentation](/in ### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. ```sh diff --git a/content/influxdb/v2.4/write-data/developer-tools/api.md b/content/influxdb/v2.4/write-data/developer-tools/api.md index 9856ff899..4c21f38ba 100644 --- a/content/influxdb/v2.4/write-data/developer-tools/api.md +++ b/content/influxdb/v2.4/write-data/developer-tools/api.md @@ -2,13 +2,13 @@ title: Write data with the InfluxDB API weight: 206 description: > - Use the `/write` endpoint of the InfluxDB API to write data to InfluxDB. + Use the `/api/v2/write` endpoint of the InfluxDB API to write data to InfluxDB. menu: influxdb_2_4: name: InfluxDB API parent: Developer tools --- -Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. +Write data to InfluxDB using an HTTP request to the InfluxDB API `/api/v2/write` endpoint. Use the `POST` request method and include the following in your request: | Requirement | Include by | @@ -44,7 +44,7 @@ The URL in the examples depends on the version and location of your InfluxDB {{< {{% note %}} ##### Use gzip compression with the InfluxDB API -When using the InfluxDB API `/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` +When using the InfluxDB API `/api/v2/write` endpoint to write data, compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. Compression reduces network bandwidth, but increases server-side load.