Prerequisites:
- Reading workspaces and their settings works on every plan.
createWorkspace,updateWorkspace, anddeleteWorkspaceare part of the Enterprise plan; on other plans, they fail withPLAN_UPGRADE_REQUIRED. - An account API key.
createWorkspace,updateWorkspace, anddeleteWorkspaceneed an account API key and noX-Paradime-Workspaceheader. 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.
Operations
The other fields of
Workspace, such as environments and gitRepository, belong to their own areas. Each one needs its own capability group.
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.
Example response
Example response
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.
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.
namemust be unique among your account’s workspaces, ignoring case.dbtVersionmust be one ofsupportedDbtVersions. Leave it out for the latest version.- Sending the same input again returns the same workspace. A workspace with the same name and another
dbtVersionis aCONFLICT.
Example response
Example response
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.
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 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.Related
- Python SDK: Workspaces: the same operations in
paradime.admin.workspaces. - Paradime CLI:
paradime admin:paradime admin workspaceslists, creates, updates, and deletes workspaces. - Rename or delete a workspace and Manage dbt™ version: the same settings in the app.
- Administration API: Users: invite the first members of a new workspace.
- Administration API: Setup status: what a new workspace still needs.