File Upload

/api/repositories/{repository}/upload
Parameter Type Purpose
repository string The name of the Repository to access

Post

POST /api/repositories/(string: repository)/upload
POST /api/repositories/jupiter/upload/library.ebr HTTP/1.1

The message body takes a file as input. The encoding should be set to enctype='multipart/form-data'.

Only one file can be uploaded at a time.

Response Code Reason
200 File uploaded to the server
500 Server error

A successful response contains the path to the file that is uploaded.

If the server filesystem contains another file with the same name, the file will be renamed to an unique name.

The request above would result in the following response:

{
    "path": "/export/library.ebr"
}