Export an app as a zip file

GET /groups/{groupId}/apps/{appId}/export

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

Query parameters

  • deployment string

    The _id of a specific deployment to export. If not specified, export the latest deployment.

  • source_control boolean

    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.

  • template boolean

    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.

  • version string

    The configuration file schema version to export. This value corresponds to config_version in root_config.json.

Responses

  • 200

    The application was successfully exported.

GET /groups/{groupId}/apps/{appId}/export
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/export' \
 --header "Authorization: Bearer $ACCESS_TOKEN"