Download a file
GET https://{{hub}}/file/{{org_id}}/files/{{subfolder_path}}/{{filename}}?include_versions={{include_versions}}
Request to download a file; an Azure Blob Storage upload link is provided to complete the operation.
The returned link is a pre-signed URL for a Microsoft Azure Blob store within our Seequent hubs. It has a 5 minute expiry, so make the second GET request within this time window, but this time to the returned URL.
Note:
ORG_ID is a path variable for the uuid allocated to the customer.
/TOPLEVELFOLDER/SUBFOLDER/FILE.EXT is an absolute path, URL-encoded.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
include_versions | string |
RESPONSES
status: OK
{"name":"assay.csv","download":"DOWNLOAD_LINK","self":"https://HUB/file/ORG_ID/files/FOLDER_PATH/SUBFOLDER_PATH/assay.csv?version=2022-08-19T09%3A12%3A57.3335332Z\u0026include_versions=true","created_at":"2022-08-19T09:12:57+00:00","version_id":"2022-08-19T09:12:57.3335332Z","size":438820,"metadata":{"User":"Brooklyn Ash","Stage":"Experimental"},"versions":[{"link":"https://HUB/file/ORG_ID/files/FOLDER_PATH/SUBFOLDER_PATH/assay.csv?version=2022-07-28T02%3A34%3A38.4087563Z","created_at":"2022-07-28T02:34:38+00:00","version_id":"2022-07-28T02:34:38.4087563Z","size":509817,"metadata":{"User":"Brooklyn Ash","Stage":"Experimental"}},{"link":"https://HUB/file/ORG_ID/files/FOLDER_PATH/SUBFOLDER_PATH/assay.csv?version=2022-08-19T09%3A12%3A42.5262970Z","created_at":"2022-08-19T09:12:42+00:00","version_id":"2022-08-19T09:12:42.5262970Z","size":9,"metadata":{"User":"Alex Rock","Stage":"Experimental"}},{"link":"https://HUB/file/ORG_ID/files/FOLDER_PATH/SUBFOLDER_PATH/assay.csv?version=2022-08-19T09%3A12%3A57.3335332Z","created_at":"2022-08-19T09:12:57+00:00","version_id":"2022-08-19T09:12:57.3335332Z","size":438820,"metadata":{"User":"Brooklyn Ash","Stage":"Experimental"}}]}