Request the download of a backup

Starts preparing a downloadable archive of a backup. Preparation runs in the background: follow it with GET /projects/{projectId}/backups/{backupId}/download until state is ready.

Pass selected_paths to download only some files or folders, relative to the site root. Without it, the archive holds the whole content of type.

Calling it again is safe. Without selected_paths, when the latest download of this type is finished, its archive is returned with a fresh link, whatever paths it was limited to: check selected_paths in the response. When the same selection is already being prepared, the route returns in_progress without starting another. download_id identifies the preparation: the GET route reports the latest one of this type, so compare the ids to be sure you follow yours.

Only one archive can be prepared at a time per project, and concurrent calls never prepare it twice. When another export holds the project's slot, the route answers 409 with that export, its selected_paths and its progress, so you can follow it with the GET route of its backup. A backup that is still running also answers 409.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Project ID

string
required

Backup ID

Body Params
string
enum
Defaults to FULL

Archive content, the whole site, the files only or the database only

Allowed:
selected_paths
array of strings, unique
length ≤ 1000
Defaults to []

Files or folders to include, relative to the site root (no leading /, no .. segment, no control character, at most 1024 characters each). Empty for the whole content of type.

selected_paths
Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json