Skip to main content

Workspaces

🏢 Workspaces

Workspaces are the primary units of organization in DataGOL. They allow you to group related workbooks and manage team access. Inside Workspaces, you can create, edit, and share workbooks.


👥 Roles and permissions

Each user in a workspace is assigned a specific role that determines their level of access.

RolePermissionsUse Case
ADMINFull control over workspace, users, and all workbooks.System administrators and IT managers.
CREATORCan create/delete workbooks and tables. Can edit any data.Department leads and data architects.
EDITORCan add/edit/delete rows in existing tables. Cannot delete tables.Operations team and data entry staff.
VIEWERStrictly read-only access to all data and schemas.External auditors and executive reviewers.

Create Workspace

This endpoint creates a new workspace in the DataGOL Platform. Workspaces help organize users, resources, and configurations within the platform.

Request Info

  • Auth Required: Yes (x-auth-token)

Request Body (JSON)

FieldTypeRequiredDescriptionExample
namestringYesThe display name of the workspace."My Team Workspace"
descriptionstringNoA brief description of the workspace."Project management area"

Try it out

POSThttps://be.datagol.ai/noCo/api/v2/workspaces
Request Body (JSON)

Add Users to Workspace (Bulk)

This endpoint allows you to add multiple users to a specific workspace in a single request. Each user is assigned a role within the workspace.

Request Info

  • Auth Required: Yes (x-auth-token)

Request Body (JSON)

ParameterTypeRequiredDescriptionExample
workSpaceUsersarrayYesList of users to be added to the workspace[...]
workSpaceUsers.emailstringYesEmail ID of the user (e.g., service account email)"datagol-sa@example.com"
workSpaceUsers.rolestringYesRole assigned to the user"EDITOR"
messagestringNoOptional message sent along with the invite"Join our project"

Example Request

{
"workSpaceUsers": [
{
"email": "datagol-bd4ffdd8@inncretech.iam.serviceaccount.com",
"role": "CREATOR"
}
],
"message": ""
}

💻 Workspace Management Examples

# Create Workspace
curl -X POST https://{base_url}/noCo/api/v2/workspaces \
-H "x-auth-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Project Alpha",
"description": "Main workspace for Alpha project"
}'

# Add User to Workspace
curl -X POST https://{base_url}/noCo/api/v2/workspaces/{workspaceId}/bulkUsers \
-H "x-auth-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"workSpaceUsers": [
{
"email": "user@example.com",
"role": "EDITOR"
}
],
"message": "Welcome to the workspace!"
}'

Was this helpful?