I’m using the free plan to get acquainted with influxdb and I have created a token that should be able to provide access to everything.
When I use the token (via curl) to get my buckets all works fine, but when I use that same token and try to POST data I get a 401.
So this works:
curl https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/buckets \
-H 'Authorization: Token MyVerySecretToken=='
But this results in a 401:
curl -X POST https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/write?bucket=mybucket&org=myorg \
-H 'Authorization: Token MyVerySecretToken==' \
--data-raw 'test_data,host=cmd-curl value=1'
I verified my org and bucket names and they match. I also tried using the unique id’s, but both gave me the same result.
Is there anything else I can try?
