In order to access the admin API endpoints you need to identify yourself. Unless you're using the
noneauthentication method, you'll need to create an ADMIN token and add an Authorization header using the token.
The api endpoint
/api/admin/state/export will export feature-toggles and strategies as json by default.\
You can customize the export with query parameters:
|format||Export format, either |
|download||If the exported data should be downloaded as a file|
|featureToggles||Include feature-toggles in the exported data|
|strategies||Include strategies in the exported data|
You can import feature-toggles and strategies by POSTing to the
You can either send the data as JSON in the POST-body or send a
file parameter with
multipart/form-data (YAML files are also accepted here).
- drop - Use this parameter if you want the database to be cleaned before import (all strategies and features will be removed).
- keep - Use this query parameter if you want to keep all exiting feature toggle (and strategy) configurations as is (no override), and only insert missing feature toggles from the data provided.
You should be careful using the
dropparameter in production environments.
400 Bad Request