Use compatibility APIs and client libraries to write data
Use compatibility APIs when you need to migrate existing InfluxDB v1 or v2 write
workloads to InfluxDB 3.x.
The /api/v2/write
(v2-compatible) and /write
(v1-compatible) HTTP API
endpoints work with InfluxDB client libraries, Telegraf, and third-party integrations
to write points as line protocol data to InfluxDB 3 Core.
Compatibility APIs differ from native APIs
Keep in mind that the compatibility APIs differ from the v1 and v2 APIs in previous versions in the following ways:
- Tags in a table (measurement) are immutable
- A tag and a field can’t have the same name within a table.
InfluxDB v2 compatibility
The /api/v2/write
InfluxDB v2 compatibility endpoint provides backwards compatibility with clients that can write data to InfluxDB OSS v2.x and Cloud 2 (TSM).
POST /api/v2/write?bucket=mydb&precision=ns
InfluxDB v1 compatibility
The /write
InfluxDB v1 compatibility endpoint provides backwards compatibility with clients that can write data to InfluxDB v1.x.
POST /write?db=mydb&precision=ns
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB 3 Core and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.