Complete Verified Upload
curl --request POST \
--url https://api.zerodrive.dev/v1/uploads/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<string>",
"sha256": "<string>",
"expected_revision": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({upload_id: '<string>', sha256: '<string>', expected_revision: 123})
};
fetch('https://api.zerodrive.dev/v1/uploads/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/uploads/complete"
payload = {
"upload_id": "<string>",
"sha256": "<string>",
"expected_revision": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Complete Verified Upload
Finalize and verify a prepared upload session with size, optional SHA-256 checksum, and revision checks.
POST
https://api.zerodrive.dev
/
v1
/
uploads
/
complete
Complete Verified Upload
curl --request POST \
--url https://api.zerodrive.dev/v1/uploads/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<string>",
"sha256": "<string>",
"expected_revision": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({upload_id: '<string>', sha256: '<string>', expected_revision: 123})
};
fetch('https://api.zerodrive.dev/v1/uploads/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/uploads/complete"
payload = {
"upload_id": "<string>",
"sha256": "<string>",
"expected_revision": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
