I downloaded the latest version of InfluxDB, it's influxdb2-2.0.3_darwin_amd64. I want to write data to the InfluxDB, and followed the documentation of "Use InfluxDB API". I got the "unauthorized access" message.
curl --request POST "http://localhost:8086/api/v2/write?org=9682c3eaabb5384c&bucket=test_bucket&precision=s" \
--header "Authorizations: TOKEN _XHOou59351P2Y8JjVDRWNMN22phTUzDVpUJtN85Dby6rfKSjDmGnxWTS_CbjZj-TJn7EaEduDwgtQyOY3BUeg==" \
--data-raw "mem,host=host1 used_percent=23.43234543 1556896326"
{"code":"unauthorized","message":"unauthorized access"}
The token was copied from the web UI.
Could anyone help me to solve this authentication problem? Thanks in advance.