Table
/api/v3/configure/distinct_cacheCreate distinct cache
Request body required
application/jsoncolumns
required
string[]db
required
stringmax_age
integermax_cardinality
integername
stringtable
required
string{
"columns": [
"tag1",
"tag2"
],
"db": "mydb",
"max_age": 3600,
"max_cardinality": 1000,
"table": "mytable"
}curl --request POST \
"https://localhost:8181/api/v3/configure/distinct_cache" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"columns":["tag1","tag2"],"db":"mydb","max_age":3600,"max_cardinality":1000,"table":"mytable"}'Responses
Bad request.
The server responds with status 400 if the request would overwrite an existing cache with a different configuration.
/api/v3/configure/distinct_cacheDelete distinct cache
Parameters
Query parameters
db
required
stringtable
required
stringname
required
stringcurl --request DELETE \
"https://localhost:8181/api/v3/configure/distinct_cache?db=DB&table=TABLE&name=NAME" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
data
objecterror
string/api/v3/configure/last_cacheCreate last cache
Request body required
application/jsoncount
integerdb
required
stringkey_columns
string[]name
stringtable
required
stringttl
integervalue_columns
string[]{
"count": 100,
"db": "mydb",
"key_columns": [
"tag1"
],
"table": "mytable",
"ttl": 3600,
"value_columns": [
"field1"
]
}curl --request POST \
"https://localhost:8181/api/v3/configure/last_cache" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"count":100,"db":"mydb","key_columns":["tag1"],"table":"mytable","ttl":3600,"value_columns":["field1"]}'Responses
data
objecterror
string/api/v3/configure/last_cacheDelete last cache
Parameters
Query parameters
db
required
stringtable
required
stringname
required
stringcurl --request DELETE \
"https://localhost:8181/api/v3/configure/last_cache?db=DB&table=TABLE&name=NAME" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
data
objecterror
string/api/v3/configure/tableCreate a table
Request body required
application/jsondb
required
stringfields
required
object[]name
required
stringtype
required
stringutf8
, int64
, uint64
, float64
, boolretention_period
string"30d"table
required
stringtags
required
string[]curl --request POST \
"https://localhost:8181/api/v3/configure/table" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"db": "DB",
"fields": [],
"retention_period": "30d",
"table": "TABLE",
"tags": [
"example"
]
}'Responses
data
objecterror
string/api/v3/configure/tableDelete a table
Soft deletes a table.
The table is scheduled for deletion and unavailable for querying.
Use the hard_delete_at parameter to schedule a hard deletion.
Use the data_only parameter to delete data while preserving the table schema and resources.
Deleting a table cannot be undone
Deleting a table is a destructive action. Once a table is deleted, data stored in that table cannot be recovered.
Parameters
Query parameters
db
required
stringtable
required
stringdata_only
booleanfalse (default), the entire table is deleted.hard_delete_at
string <date-time>Schedule the table for hard deletion at the specified time. If not provided, the table will be soft deleted. Use ISO 8601 format (for example, “2025-12-31T23:59:59Z”).
Also accepts special string values:
now— hard delete immediatelynever— soft delete only (default behavior)default— use the system default hard deletion time
curl --request DELETE \
"https://localhost:8181/api/v3/configure/table?db=DB&table=TABLE" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
data
objecterror
stringWas 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.