Trying the code:
curl --request POST
http://localhost:8086/api/v2/query?org=privat
–header “Authorization: Token $TOKEN”
–header ‘Accept: application/csv’
–header ‘Content-type: application/vnd.flux’
–data ‘from(bucket:“finanz-test”)
|> range(start: 2021-02-21T15:48:06.270251807Z)
|> filter(fn: (r) => r[“_measurement”] == “Kurse”)
|> filter(fn: (r) => r[“ISIN”] == “Fut_DAX”)’
everything works fine. BUT for:
curl --request POST
http://0.0.0.0:8086/api/v2/delete/?org=privat&bucket=finanz-test
–header “Authorization: Token $TOKEN”
–header ‘Content-Type: application/json’
–data ‘{ “start”: “2021-02-21T15:48:06.270251807Z”, “stop”: “2021-02-21T15:50:11.267979687Z” }’
I get the message {"code":"unauthorized","message":"unauthorized access"}
. It is the same authorization, I don’t understand the difference.
I use docker with influxdb:v2.0.4
.