docs-v2/shared/text/api/cloud-dedicated/bearer-auth-v2-write.sh

9 lines
389 B
Bash

########################################################
# Use the Bearer authorization scheme with /api/v2/write
# to write data.
########################################################
curl --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'