Workspaces

The Workspace object#

{
"@context": {...},
"@id": "xbDsSfcswWPoYnUN8vJ",
"@type": "Workspace",
"user_id": "auth0|5f04po976078900139bb58a",
"name": "Acme Workspace",
"createdAt": "2020-07-08T09:31:10.303945",
"updatedAt": "2020-07-08T09:31:10.303961",
}

Properties#

PropertyTypeDescription
@contextobjectOptional
@idstringUnique identifier for the object
@typestringValue is "Workspace"
user_idstringThe ID of the User that created it.
namestringName of the Workspace. Is shown on the Datablist App.
createdAtstringTimestamp of object creation, expressed according to ISO 8601.
updatedAtstringTimestamp of object last update, expressed according to ISO 8601.

List all workspaces#

GET https://data.datablist.com

This will list the workspaces for your current account.

curl https://data.datablist.com \
-H "Authorization: Bearer {{YOUR ACCESS TOKEN}}"
Response
{
"@context": {...},
"data": [{
"user_id": "auth0|5f0476c976004400139bb58a",
"name": "Acme Workspace",
"createdAt": "2020-07-08T09:31:10.303945",
"updatedAt": "2020-07-08T09:31:10.303961",
"@id": "xbDnos4GHeCO7YnUN8vJ"
}]
}

Create a workspace#

POST https://data.datablist.com
{
"name": "Acme Workspace",
"@type": "Workspace"
}

Any extra field will return a bad request error.

On success, returns a HTTP code 201 with {"@id": "WORKSPACE_ID"}

Retrieve a workspace#

GET https://data.datablist.com/:workspace_id

Response
{
"@context": {...},
"@id": "xbDsSfcswWPoYnUN8vJ",
"@type": "Workspace",
"user_id": "auth0|5f04po976078900139bb58a",
"name": "Acme Workspace",
"createdAt": "2020-07-08T09:31:10.303945",
"updatedAt": "2020-07-08T09:31:10.303961",
}

Update a workspace#

Updates can be performed with PATCH, by sending only the fields to be updated, or with PUT which requires the whole object.

Partial#

PATCH https://data.datablist.com/:workspace_id
{
"name": "Updated name"
}

On success, returns an empty HTTP 204 No Content.

Full update#

PUT https://data.datablist.com/:workspace_id
{
"name": "Updated name",
"@type": "Space"
}

On success, returns an empty HTTP 204 No Content.

Delete a workspace#

DELETE https://data.datablist.com/:workspace_id

On success, returns an empty HTTP 204 No Content.

caution

Currently, workspace creation and delete through the API require special privilege. Please contact us if you need access.