postVerejné API v1
/api/v1/backup/complete
Assembles the parts, checks the stored size against the declared size and registers the file. Idempotent: repeating the call returns the same backup. The copy to the backup datacentre follows asynchronously (isMirrored).
backupbackupComplete
Telo požiadavky
application/jsonidstringPovinnéBackup id returned by /backup/start.
Dĺžka: 16
Príklad
aB3dE5fG7hJ9kL1mpartsobject[]PovinnéEvery part 1..partCount exactly once.
Každá položka poľa:
partNumberstring | integerPovinnéJedna z 2 možností:
Variant 1
stringinteger
Predvolené:
0Variant 2
integer
Rozsah: 1–∞
etagstringPovinnéValue of the ETag header returned by the part PUT.
Dĺžka: 1–∞
sha256stringVoliteľnéSHA-256 of the whole file (hex), stored for later verification.
Ukážka požiadavky
POST /api/v1/backup/completecurl -X POST "https://api.bizkithub.com/api/v1/backup/complete?apiKey=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "aB3dE5fG7hJ9kL1m",
"parts": [
{
"etag": "example_etag"
}
],
"sha256": "example_sha256"
}'