Table
/api/v3/configure/distinct_cacheCreate distinct cache
Request body required
application/jsoncolumns
required
string[]db
required
stringmax_age
integermax_cardinality
integername
stringnode_spec
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
stringnode_spec
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/tableUpdate a table
Request body required
application/jsondb
required
stringretention_period
string"30d"table
required
stringcurl --request PUT \
"https://localhost:8181/api/v3/configure/table" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"db": "DB",
"retention_period": "30d",
"table": "TABLE"
}'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
string/api/v3/enterprise/configure/file_indexCreate a file index
Creates a file index for a database or table.
A file index improves query performance by indexing data files based on specified columns, enabling the query engine to skip irrelevant files during query execution.
This endpoint is only available in InfluxDB 3 Enterprise.
Request body required
application/jsoncolumns
required
string[]db
required
stringtable
string{
"columns": [
"tag1",
"tag2"
],
"db": "mydb",
"table": "mytable"
}curl --request POST \
"https://localhost:8181/api/v3/enterprise/configure/file_index" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"columns":["tag1","tag2"],"db":"mydb","table":"mytable"}'Responses
data
objecterror
string/api/v3/enterprise/configure/file_indexDelete a file index
Deletes a file index from a database or table.
This endpoint is only available in InfluxDB 3 Enterprise.
Request body required
application/jsondb
required
stringtable
string{
"db": "mydb",
"table": "mytable"
}curl --request DELETE \
"https://localhost:8181/api/v3/enterprise/configure/file_index" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"db":"mydb","table":"mytable"}'Responses
data
objecterror
string/api/v3/enterprise/configure/table/retention_periodSet table retention period
Sets or updates the retention period for a specific table.
Use this endpoint to control how long data in a table is retained independently of the database-level retention period.
This endpoint is only available in InfluxDB 3 Enterprise.
Related
Parameters
Query parameters
db
required
stringtable
required
stringduration
required
stringcurl --request POST \
"https://localhost:8181/api/v3/enterprise/configure/table/retention_period?db=DB&table=TABLE&duration=DURATION" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
data
objecterror
string/api/v3/enterprise/configure/table/retention_periodClear table retention period
Removes the retention period from a specific table, reverting to the database-level retention period (or infinite retention if no database-level retention is set).
This endpoint is only available in InfluxDB 3 Enterprise.
Related
Parameters
Query parameters
db
required
stringtable
required
stringcurl --request DELETE \
"https://localhost:8181/api/v3/enterprise/configure/table/retention_period?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 Enterprise and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support. Customers using a trial license can email trial@influxdata.com for assistance.