InfluxDB 2.7 API Authorization: User + PW instead of Token

Hello,

is it possible to write data via a HTTP(s) POST request into influxDB 2.7 with only the user & pw instead of the long token?

Regards Matthias

Hi,

Try the below one:

data
    |> to(
        bucket: "example-bucket",
        org: "example-org",
        userid:
        password:
        host: "https://myinfluxdbdomain.com/8086",
    )

Hi,
Thanks for your Help.

I use the Arduino Framework and Libs. That is my actual code:

POST /api/v2/write?org=&bucket=&precision=s HTTP/1.1
Host: 192.168.1.15
Authorization: Basic VXNlcjpQYXNzd29ydA==
Content-Type: text/plain

User:passwort == (base64) VXNlcjpQYXNzd29ydA==

but with this settings the data will not store in Database. Where is the failure?