Skip to main content

Create workspace request

A new workspace.

namestringrequired

Name, at most 200 characters.

Example: Acme
descriptionstringnullable

Description.

open_to_orgboolean

Open the workspace to the whole organization. Defaults to false. Ignored when the organization allows restricted workspaces only.

connection objectnullable

The data warehouse connection.

typestringrequired

Warehouse type.

Possible values: [athena, bigquery, clickhouse, databricks, fabric, postgresql, redshift, snowflake, trino]

hoststringnullable

Host, account ID (Snowflake), project ID (BigQuery) or SQL endpoint (Fabric).

portintegernullable

Port.

catalogstringnullable

Database, catalog or data catalog.

user_namestringnullable

User name, or AWS access key ID for Athena.

passwordstringnullable

Password, token, AWS secret access key or BigQuery service account JSON. Write-only.

private_keystringnullable

Snowflake private key for key_pair authentication. Write-only.

auth_typestringnullable

Authentication method. Defaults to password.

Possible values: [password, key_pair, workload_identity, account_wide_federation, personal_oauth]

url_params objectnullable

Extra connection URL query parameters.

property name*string
regionstringnullable

AWS region (Athena).

s3_staging_dirstringnullable

S3 staging directory (Athena).

warehousestringnullable

Warehouse (Snowflake).

rolestringnullable

Role (Snowflake).

http_pathstringnullable

HTTP path (Databricks).

principal_uuidstringnullable

Principal UUID for workload_identity (Databricks).

account_idstringnullable

Account ID for account_wide_federation (Databricks).

oauth_client_idstringnullable

OAuth client ID for personal_oauth (Databricks).

oauth_client_secretstringnullable

OAuth client secret for personal_oauth (Databricks). Write-only.

secureboolean

Use SSL (ClickHouse).

httpboolean

Use the HTTP interface (ClickHouse).

Create workspace request
{
"name": "Acme",
"description": "string",
"open_to_org": true,
"connection": {
"type": "athena",
"host": "string",
"port": 0,
"catalog": "string",
"user_name": "string",
"password": "string",
"private_key": "string",
"auth_type": "password",
"url_params": {
"sslmode": "require"
},
"region": "string",
"s3_staging_dir": "string",
"warehouse": "string",
"role": "string",
"http_path": "string",
"principal_uuid": "string",
"account_id": "string",
"oauth_client_id": "string",
"oauth_client_secret": "string",
"secure": true,
"http": true
}
}