Export an app as a zip file
The Export Endpoint is deprecated. Instead, call the Pull App
Configuration Files
endpoint with an Accept: application/zip
header.
Export an application as a zip file.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
Query parameters
-
The
_id
of a specific deployment to export. If not specified, export the latest deployment. -
If
true
, the exported directory is suitable for automatic deployment from GitHub or other source control.Cannot be used with the
template
query parameter.Default value is
false
. -
If
true
, the exported directory does not include any identifiers or other data that would tie the app to a specific deployment instance.Cannot be used with the
source_control
query parameter.Default value is
false
. -
The configuration file schema version to export. This value corresponds to
config_version
inroot_config.json
.
curl \
--request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/export' \
--header "Authorization: Bearer $ACCESS_TOKEN"