Influxdb 2.0 error

I upgraded to the new version of chirpstack and installed influxdb 2.0 … I configured everything in the integration, bucket and token but in the log I get:
error = “sending measurements error: expected 2xx response, got: 400 ({” code \ ": " invalid \ ", " message \ ": " missing db \ “})” integration = "* influxdb.Integration "

Can anyone help me with this?

solved … api endpoint should be:
http://127.0.0.1:8086/api/v2/write