v1
Double column
API
CLI
JS client
API
CLI
JS client

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

Example request

request body

live

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

url

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.