I would like to delete data of influxDB.
I try to use curl method.
I can use post man to run curl to delete data.
However, it is error when i use http request node in Node Red. Any idea? Thank you for your help.
It is error message of debug node in Node Red.
"{"code":"invalid","message":"error decoding json body: Invalid delete predicate node request: json: cannot unmarshal number into Go value of type http.deleteRequestDecode"}"
Between, i also want clarify the root cause of problem. Can i put all curl command in http request node?
Here is my curl command in post man:
curl --location 'XX.XXX.XXX.XX:8086/api/v2/delete?bucket=goalgobike&org=YYYYYYYYY'
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--data '{
"start": "2000-10-20T16:00:00.000Z",
"stop": "2031-10-20T17:00:00.000Z",
"predicate": "_measurement=bike2id"
}'