docs-v2/content/influxdb3/enterprise/admin/databases/create.md

1.1 KiB

title description menu weight list_code_example related source
Create a database Use the influxdb3 CLI, HTTP API, or InfluxDB 3 Explorer to create a new database in {{< product-name >}}.
influxdb3_enterprise
parent
Manage databases
201 <!--pytest.mark.skip--> ```sh{placeholders="DATABASE_NAME"} # influxdb3 CLI influxdb3 create database \ --retention-period 30d \ DATABASE_NAME # HTTP API curl --request POST "http://localhost:8181/api/v3/configure/database" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer AUTH_TOKEN" \ --data '{ "db": "DATABASE_NAME", "retention_period": "30d" }' ```
/influxdb3/enterprise/reference/cli/influxdb3/create/database/
/influxdb3/enterprise/api/v3/#operation/PostConfigureDatabase, Create database API
/influxdb3/enterprise/reference/naming-restrictions/
/influxdb3/enterprise/reference/internals/data-retention/
/influxdb3/explorer/manage-databases/
/shared/influxdb3-admin/databases/create.md