Skip to main content
Manage the workspaces of your Paradime account from code: create a workspace for a new team, change its name, dbt™ version and branches, read its settings, and delete it.
Prerequisites:
  • Reading workspaces and their settings works on every plan. createWorkspace, updateWorkspace, and deleteWorkspace are part of the Enterprise plan; on other plans, they fail with PLAN_UPGRADE_REQUIRED.
  • An account API key. createWorkspace, updateWorkspace, and deleteWorkspace need an account API key and no X-Paradime-Workspace header. A workspace API key can read only its own workspace.
  • The Workspace admin capability group to create, update, and delete workspaces. To list workspaces and read their settings, Workspace admin or Workspace metadata viewer is enough.
Keys, errors, and pagination work the same in every area. See Conventions.

Operations

The other fields of Workspace, such as environments and gitRepository, belong to their own areas. Each one needs its own capability group.
For new code, use workspaces rather than listWorkspaces from the Workspace Management API. workspaces pages its results, and its workspaces return the settings fields. A Workspace that you read through listWorkspaces returns null for every field except uid and name.

List workspaces and their settings

workspaces lists the workspaces the key can reach: every workspace that you granted to an account API key, or the own workspace of a workspace API key. It needs no X-Paradime-Workspace header, and one query reads the settings of every workspace on the page.
To read one workspace, use workspace. Leave out workspaceUid to read the workspace the key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header.
A key with no settings group can still read uid, name, and createdAt. A settings field it can’t read returns null with a MISSING_CAPABILITY error.

Create a workspace

createWorkspace creates a workspace with no members. Paradime sets it up as the app does: it gets a default Bolt environment, and a default agent environment that defers to it. Paradime also adds the new workspace to the workspaces of the calling key, so the same key can target it on its next request.
  • name must be unique among your account’s workspaces, ignoring case.
  • dbtVersion must be one of supportedDbtVersions. Leave it out for the latest version.
  • Sending the same input again returns the same workspace. A workspace with the same name and another dbtVersion is a CONFLICT.
Then set up the new workspace. Send its uid in the X-Paradime-Workspace header:
1

Invite the first admin

Invite a person with the Admin role with createUser.
2

Connect the repository

Connect the dbt™ project’s repository with connectGitRepository.
3

Add the warehouse connections

Add the warehouse connections with createWarehouseConnection.
4

Check what is left

Read the setup status checklist.
The guide Onboard a workspace with the API runs every step in order.

Change a workspace’s settings

updateWorkspace changes only the settings you send. A setting that you leave out keeps its value. name, dbtVersion, and dbtPartialParsing can’t be null: to keep a value, leave the field out.

Delete a workspace

deleteWorkspace deletes a workspace and removes its members from it. The name is free to use again. You can’t delete your account’s last workspace.
Deleting a workspace removes every member’s access to it. The API can’t restore a deleted workspace.
Deleting a workspace that is already deleted is not an error: the call returns the deleted workspace again. Its settings fields read as null.

Errors

These are the cases specific to workspaces. For the error format and the codes every area shares, see Errors.