User Files

Operations related to the user files.

Retrieve Files

GET http://biostudy-prod.ebi.ac.uk:8788/files/user/{path}

Download the file in the given path from the user directory. If the path points to a folder, the list of the files contained in it will be retrieved.

Path Parameters

Name
Type
Description

path

string

Path to the file. If empty, all the files in the user directory will be listed.

Headers

Name
Type
Description

X-SESSION-TOKEN

string

User authentication token

[{
  "name": "test3.txt",
  "path": "user/a/b",
  "size": 31,
  "type": "FILE"
}, {
  "name": "test4.txt",
  "path": "user/a/b",
  "size": 18,
  "type": "FILE"
}]

Upload Files

POST http://biostudy-prod.ebi.ac.uk/files/user/{path}

Uploads a file to the given path. If the given path is a directory, the file will be uploaded there preserving its current name. If it's a full file path, the file name will be replaced.

Path Parameters

Name
Type
Description

path

string

The path to upload the file. If empty, it'll be uploaded to the root user directory.

Headers

Name
Type
Description

X-SESSION-TOKEN

string

User authentication token

Request Body

Name
Type
Description

files

object

The file(s) to be uploaded

Delete File

DELETE http://biostudy-prod.ebi.ac.uk:8788/files/user/{path}

Delete the file contained in the given path and with the given name

Path Parameters

Name
Type
Description

path

string

The path to the folder containing the file to be deleted.

Headers

Name
Type
Description

X-SESSION-TOKEN

string

User authentication token

Request Body

Name
Type
Description

fileName

string

Name of the file to be deleted

Create Folder

POST http://biostudy-prod.ebi.ac.uk:8788/folder/user/{path}

Creates a folder in the

Path Parameters

Name
Type
Description

path

string

Path for the new folder

Headers

Name
Type
Description

X-SESSION-TOKEN

string

User authentication token

Request Body

Name
Type
Description

folder

string

Name of the new folder

Last updated

Was this helpful?