Setup
/api/v2/setupCheck if database has default user, org, bucket
true if no default user, organization, or bucket has been created.Parameters
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
allowed
booleantrue, the InfluxDB instance hasn’t had initial setup;
false otherwise./api/v2/setupSet up initial user, org and bucket
Parameters
Header parameters
Zap-Trace-Span
stringRequest body required
application/jsonbucket
required
stringorg
required
stringpassword
stringretentionPeriodHrs
integerretentionPeriodSecondsretentionPeriodSeconds
integer <int64>token
stringusername
required
stringcurl --request POST \
"http://localhost:8086/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"bucket": "BUCKET",
"org": "ORG",
"password": "PASSWORD",
"retentionPeriodHrs": 0,
"retentionPeriodSeconds": 0,
"token": "TOKEN",
"username": "USERNAME"
}'Responses
auth
stringbucket
stringorg
stringuser
stringcode
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
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 and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.