Start uploading a backup file
/backups/imports/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Announces the file's name and size, then send it in pieces with "Upload part of a backup file". Refused (400) when the disk has not enough free space. Panel operators only.
Body
filenamestringrequiredsize_bytesintegerrequired
Response
201 OK
idstringrequiredfilenamestringrequiredsize_bytesintegerrequiredreceivedintegerrequiredBytes uploaded so far.
statusstringrequireduploading- uploadingready- readyrestoring- restoringcompleted- completedfailed- failed
One of:
"uploading""ready""restoring""completed""failed"phasestringrequiredmessagestringrequiredcreated_bystringrequiredcreated_atstringrequiredupdated_atstringrequiredencryptedbooleanarchiveobjectrequiredWhat the file holds; empty until it is checked.
created_atstringscopestringcontents_labelstringcomponentsobject[]{key, label, kind}for each part the file holds.filesstring[]databaseobjectpanel_imagestringadminsobject[]{username, is_active}of the administrators in the file.admins_knownbooleanaccountsobjectproblemstringcan be nullWhy this file cannot be restored here, if it cannot.
optionsobjectrequiredWhat the restore was asked to do.
outcomeobjectrequiredWhat the restore did, once it has finished.
chunk_bytesintegerOnly when the upload starts: send the file in pieces of at most this size.
expected_offsetintegerOnly when a piece was not written: send again from this byte.
adminsobjectOnly after a check: the file's administrators against this panel's.
knownbooleanrequiredFalse for older backups that do not record their administrators.
theirsstring[]requiredminestring[]requiredonly_theirsstring[]requiredonly_minestring[]requireddifferbooleanrequirednone_in_backupbooleanrequired
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.