Export feature flags from an environment
POSThttps://us.app.unleash-hosted.com/ushosted/api/admin/features-batch/export
Exports all features listed in the features
property from the environment specified in the request body. If set to true
, the downloadFile
property will let you download a file with the exported data. Otherwise, the export data is returned directly as JSON. Refer to the documentation for more information about Unleash's export functionality.
Request
Responses
- 200
- 404
exportResultSchema
The requested resource was not found.
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://us.app.unleash-hosted.com/ushosted/api/admin/features-batch/export' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"environment": "development",
"downloadFile": true,
"features": [
"MyAwesomeFeature"
]
}'
ResponseClear