uploads

List uploads

Lists JSON details of all files uploaded to the instance.

Request

get
/uploads

Response

{
  "status": "200"
}

Upload a file

Accepts file uploads as multipart requests. The request should contain a single field file containing the file data.

A file name and type must be included in the query string.

Errors

StatusDescription
401 Requires authorization
403 Not permitted
404 Not found

Request

post
/uploads

Response

{
  "example": [
    {
      "created_at": "2022-01-22T17:28:21.491000Z",
      "id": 106,
      "name": "MPI19_L3_2.fq.gz",
      "name_on_disk": "106-MPI19_L3_2.fq.gz",
      "ready": true,
      "removed": false,
      "removed_at": null,
      "reserved": true,
      "size": 3356803271,
      "type": "reads",
      "uploaded_at": "2022-01-22T17:31:59.801000Z",
      "user": {
        "administrator": true,
        "handle": "mrott",
        "id": "ihvze2u9"
      }
    }
  ],
  "status": "201"
}

Delete an upload

Deletes an upload using its 'upload id'.

Request

delete
/uploads/{upload_id}

Download an upload

Downloads a previously uploaded file.

Headers: Content-Disposition: attachment; filename= Content-Type: application/octet-stream

Errors

StatusDescription
404 Not found

Request

get
/uploads/{upload_id}

Response

{
  "status": "200"
}