Check out ExpanDrive for Teams - Centralized cloud based configuration console for Teams

Strongspace Files API

Here is the API for managing files on Strongspace. Just like the rest of the API, successful API calls return HTTP status codes in the 200s and errors have codes 400 and higher.

Upload a file
—————

POST /api/v1/files/:

Example:

$ curl -u hemancuso/token:******* -F file=@jeff.jpg https://www.strongspace.com/api/v1/files/hemancuso/home/jeff.jpg

Will return something like this

{“status”:”success”}
{“status”:”file already exists”}
{“status”:”permission denied”}

Download a file
————-
GET /api/v1/files/:path

Example:

$ curl -O -u hemancuso/token:******* https://www.strongspace.com/api/v1/files/hemancuso/home/jeff.jpg

Success returns the bytes of the file. In the example above `-O` indicates to write the stream to disk with the inferred name of the remote file.

Errors:

{“status”:”permission denied”}
{“status”:”not a file”}

Create a Folder
————
POST /api/v1/files/:path
:op=mkdir

Example:

$ curl -u hemancuso/token:******* -F op=mkdir https://www.strongspace.com/api/v1/files/hemancuso/home/some_folder

Will return something like this

{“status”:”success”}
{“status”:”folder already exists”}
{“status”:”permission denied”}

Delete a file or folder
—————–

This command deletes a file or *recursively* deletes a folder and everything inside of it.

DELETE /api/v1/files/:path

Example:

$ curl -X DELETE -u hemancuso/token:******* https://www.strongspace.com/api/v1/files/hemancuso/home/jeff.jpg

Will return something like this

{“status”:”success”}
{“status”:”permission denied”}
{“status”:”you can’t delete an entire space”}

Copy or Move
———–

PUT /api/v1/files/:path
:op=[copy/move] :srcpath=[path, such as /jmancuso/home/original]

Example:

curl -X PUT -u hemancuso/token:******* -F op=move -F srcpath=/hemancuso/home/jeff.jpg https://www.strongspace.com/api/v1/files/jmancuso/home/jeff2.jpg

Will return something like this

{“status”:”success”}
{“status”:”permission denied”}
{“status”:”destination file already exists”}
{“status”:”source doesn’t exist”}