Get a run
Requires scope `runs:read`. Deleted files are left out unless you pass `include_deleted=true`.
Requires scope runs:read. Deleted files are left out unless you pass include_deleted=true.
Authorization
bearerAuth Personal access tokens begin with dhub_… and are restricted by their assigned scopes.
In: header
Path Parameters
The run ID. Spaces at the start or end are ignored.
Query Parameters
true also lists the run's deleted files, each with deleted_at and who deleted it. Default false.
Value in
- "true"
- "false"
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"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instrument_id": "string", "instrument_display_name": "string", "run_id": "string", "source": "lambda", "watcher_id": "27df7c14-b173-4f02-8a23-1addd1027920", "created_at": "2019-08-24T14:15:22Z", "acquired_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "deleted_by": "string", "deleted_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "metadata": { "property1": null, "property2": null }, "attributions": [ { "userId": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" } ], "lab_notebooks": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "url": "string", "url_key": "string", "linked_at": "2019-08-24T14:15:22Z", "linked_by": { "id": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" }, "linked_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } } ], "files": [ { "id": 0, "filename": "string", "relative_path": "string", "s3_key": "string", "content_type": "string", "size_bytes": 0, "category": "raw", "status": "detected", "metadata": { "property1": null, "property2": null }, "error_message": "string", "upload_failure_reason": "folder_missing", "upload_failed_at": "2019-08-24T14:15:22Z", "detected_at": "2019-08-24T14:15:22Z", "upload_requested_at": "2019-08-24T14:15:22Z", "uploaded_at": "2019-08-24T14:15:22Z", "processed_at": "2019-08-24T14:15:22Z", "processing_started_at": "2019-08-24T14:15:22Z", "download_url": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "file_created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "deleted_by": "string", "deleted_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } } ]}{ "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 } }}Create an instrument run POST
Requires scope `runs:create`. PAT only; browser sessions are rejected. Returns 200 with the existing run when it already exists. Returns 409 (`details.reason: run_deleted`) when the run exists and was deleted and the body has `source: "watcher"`, an `acquired_at`, or a non-empty `detected_files`. The request then attaches no files and changes nothing. A body with only `run_id` and `source: "lambda"` still gets 200. A token that registered a watcher may act only on instruments whose active watcher it registered, and gets 403 for any other.
Update a run PATCH
Requires scope `runs:update`. PAT only; browser sessions are rejected. Returns 409 (`details.reason: run_deleted`) when the run was deleted. Restore it first. A token that registered a watcher may act only on instruments whose active watcher it registered, and gets 403 for any other.