fix broken curl post commands (#5423)
* fix broken curl post commands * fix broken curl post commands --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>pull/5426/head^2
parent
0feb32b0f8
commit
248c9c0b39
|
@ -2038,7 +2038,7 @@ components:
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Bearer DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
```
|
||||
|
@ -2069,7 +2069,7 @@ components:
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Token DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
```
|
||||
|
|
|
@ -2022,7 +2022,7 @@ components:
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Bearer DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
```
|
||||
|
@ -2053,7 +2053,7 @@ components:
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Token DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
```
|
||||
|
|
|
@ -68,7 +68,7 @@ Use `Token` to authenticate a write request:
|
|||
{{% code-placeholders "BUCKET_NAME|API_TOKEN" %}}
|
||||
```sh
|
||||
# Use the Token authentication scheme with /api/v2/write
|
||||
curl --post "https://{{< influxdb/host >}}/api/v2/write?bucket=BUCKET_NAME&precision=s" \
|
||||
curl --request post "https://{{< influxdb/host >}}/api/v2/write?bucket=BUCKET_NAME&precision=s" \
|
||||
--header "Authorization: Token API_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
```
|
||||
|
|
|
@ -78,7 +78,7 @@ Use `Bearer` to authenticate a write request:
|
|||
{{% influxdb/custom-timestamps %}}
|
||||
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
|
||||
```sh
|
||||
curl --post 'https://{{< influxdb/host >}}/api/v2/write?bucket=DATABASE_NAME&precision=s' \
|
||||
curl --request post 'https://{{< influxdb/host >}}/api/v2/write?bucket=DATABASE_NAME&precision=s' \
|
||||
--header 'Authorization: Bearer DATABASE_TOKEN' \
|
||||
--data-binary 'home,room=kitchen temp=72 1641024000'
|
||||
```
|
||||
|
@ -88,7 +88,7 @@ Use `Token` to authenticate a write request:
|
|||
|
||||
{{% code-placeholders "DATABASE_NAME|DATABASE_TOKEN" %}}
|
||||
```sh
|
||||
curl --post "https://{{< influxdb/host >}}/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://{{< influxdb/host >}}/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Token DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1641024000'
|
||||
```
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post 'https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s' \
|
||||
curl --request post 'https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s' \
|
||||
--header 'Authorization: Bearer DATABASE_TOKEN' \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
# to write data.
|
||||
########################################################
|
||||
|
||||
curl --post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
curl --request post "https://cluster-id.influxdb.io/api/v2/write?bucket=DATABASE_NAME&precision=s" \
|
||||
--header "Authorization: Token DATABASE_TOKEN" \
|
||||
--data-binary 'home,room=kitchen temp=72 1463683075'
|
||||
|
|
Loading…
Reference in New Issue