Workspaces are the top-level organizational structure for folders and files. Workspaces are also a root_folder whose contents can be examined via the Folders endpoint.
Create a Workspace
POSThttps://ws-api.onehub.com/workspaces
Creates a new Workspace owned by the user.
Request Body
{"workspace": {"id":4137,"name":"Testing the API","background_color":"#58b28d","updated_at":"2016-01-25T16:39:34-08:00","data_room":false,"default_view":"rows","default_sort":"alphabetical","root_folder_id":849927,"owner_id":481,"audit_trail":true,"is_owner":true,"require_agreement":false,"agreement_accepted":false,"effective_role":"Administrator","errors": {} }}
Read a Workspace
GEThttps://ws-api.onehub.com/workspaces/:id
Retrieve the Workspace specified via :id.
Path Parameters
{"workspace": {"id":4137,"name":"Testing the API","background_color":"#58b28d","updated_at":"2016-01-25T16:39:34-08:00","data_room":false,"default_view":"rows","default_sort":"alphabetical","root_folder_id":849927,"owner_id":481,"audit_trail":true,"is_owner":true,"require_agreement":false,"agreement_accepted":false,"effective_role":"Administrator","errors": {} }}
//
Update a Workspace
PUThttps://ws-api.onehub.com/workspaces/:id
Updates the Workspace specified via :id.
Path Parameters
Request Body
{"workspace": {"id":4137,"name":"Testing the API","background_color":"#58b28d","updated_at":"2016-01-25T16:39:34-08:00","data_room":false,"default_view":"thumbnails","default_sort":"alphabetical","root_folder_id":849927,"owner_id":481,"audit_trail":true,"is_owner":true,"require_agreement":false,"agreement_accepted":false,"effective_role":"Administrator","errors": {} }}
Delete a Workspace
DELETEhttps://ws-api.onehub.com/workspaces/:id
Delete the Workspace specified via :id.
Path Parameters
//
List all Workspaces
GEThttps://ws-api.onehub.com/workspaces
List all Workspaces that the user has been invited to.
{"current_page":1,"total_entries":1,"total_pages":1,"offset":0,"previous_offset":null,"next_offset":null,"per_page":30,"items": [ {"workspace": {"id":4137,"name":"Testing the API","background_color":"#58b28d","updated_at":"2016-01-25T16:54:00-08:00","data_room":false,"default_view":"thumbnails","default_sort":"alphabetical","root_folder_id":849587,"owner_id":481,"audit_trail":true,"is_owner":true,"require_agreement":false,"agreement_accepted":false,"effective_role":"Administrator","errors": {} } } ]}