Download a bundle as a zip
const url = 'https://work.optidata.cloud/api/drives/1/bundles/1/download';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://work.optidata.cloud/api/drives/1/bundles/1/download \ --header 'Authorization: Bearer <token>'Streams the zip archive of a completed bundle request. Requires permission to download the bundle.
A bundle that is still being assembled, or whose archive has already been cleaned up, answers with an error rather than a partial file.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Numeric id of the drive. Read it from GET /drives/config.json.
Numeric id of the bundle request.
Responses
Section titled “ Responses ”The zip archive.
Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The caller lacks the permission level the operation requires.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "This action is unauthorized."}The bundle does not exist, is not ready yet, or its archive is gone.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examplegenerated
{ "message": "example"}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}