v1
Double column
API
CLI
JS Client
API
CLI
JS Client

POST /v1/projects/{projectId}/addons/{addonId}/import

Example request

Request body

Import using a connection string. The database will be imported from the live database located at the connection string's location.

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"name":"Example Backup","connectionString":"mongodb://mongodb0.example.com:27017"}' \
  https://api.northflank.com/v1/projects/{projectId}/addons/{addonId}/import

OR

Import using an external archive. The database will be imported from an existing backup.

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"name":"Example Backup","importUrl":"https://example.com/backup.db.gz"}' \
  https://api.northflank.com/v1/projects/{projectId}/addons/{addonId}/import

Example response

200 OK

success

© 2021 Northflank Ltd. All rights reserved.