Data Hub
Files

List the files linked to some files of a run

Requires scope `files:delete`. Lists what a delete (the default) or a restore (`for=restore`) would take along with each file, grouped by the file you asked about, so you can show it before you act. For a delete, a raw file's linked files are the active processed files made from it and the `run.json` saved with its capture, which is listed only when every raw file in that folder is among the files asked about. For a restore, they are the deleted ones, and a deleted `run.json` comes back when any raw file of its folder does. A deleted processed file's linked file is the deleted raw file it was made from. A token that registered a watcher may act only on instruments whose active watcher it registered, and gets 403 for any other.

GET
/instruments/{instrumentId}/runs/{runId}/files/linked

Requires scope files:delete. Lists what a delete (the default) or a restore (for=restore) would take along with each file, grouped by the file you asked about, so you can show it before you act. For a delete, a raw file's linked files are the active processed files made from it and the run.json saved with its capture, which is listed only when every raw file in that folder is among the files asked about. For a restore, they are the deleted ones, and a deleted run.json comes back when any raw file of its folder does. A deleted processed file's linked file is the deleted raw file it was made from. A token that registered a watcher may act only on instruments whose active watcher it registered, and gets 403 for any other.

Authorization

bearerAuth
AuthorizationBearer <token>

Personal access tokens begin with dhub_… and are restricted by their assigned scopes.

In: header

Path Parameters

instrumentId*string
runId*string

The run ID. Spaces at the start or end are ignored.

Query Parameters

file_ids*string

Comma-separated file IDs, 1 to 100. An ID that isn't a file of this run is left out.

for?string

delete (the default) lists the active files a delete would take along. restore lists the deleted files a restore would bring back.

Value in

  • "delete"
  • "restore"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/instruments/plate-reader/runs/run-2026-001/files/linked?file_ids=12%2C13"
{  "instrument_id": "string",  "run_id": "string",  "groups": [    {      "file_id": 0,      "linked": [        {          "id": 0,          "filename": "string",          "size_bytes": 0,          "category": "raw",          "relation": "video",          "deleted_at": "2019-08-24T14:15:22Z"        }      ]    }  ]}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}