v1
latestSwagger 2.02026-07-178567199.3 KBsources
write
Write points to the backend time series data source
post/sources/{id}/write
Path parameters
idstring required
ID of the data source
Query parameters
dbstring required
Sets the target database for the write.
rpstring
Sets the target retention policy for the write. InfluxDB writes to the DEFAULT retention policy if you do not specify a retention policy.
precision'ns' | 'u' | 'ms' | 's' | 'm' | 'h'
Sets the precision for the supplied Unix time values. InfluxDB assumes that timestamps are in nanoseconds if you do not specify precision.
consistency'any' | 'one' | 'quorum' | 'all'
Sets the write consistency for the point. InfluxDB assumes that the write consistency is one if you do not specify consistency. See the InfluxEnterprise documentation for detailed descriptions of each consistency option.
Request body
string byte required
Response
Points written successfuly to database.