workspace_manage to control the full lifecycle.
Parameters
string
required
The operation to perform. One of:
create, list, delete, promote.string
For
create: the scraper whose data should be cloned into the new workspace. If omitted, a SQL-only workspace is created with no data cloning. For list: filters results to workspaces associated with this scraper.string
Required for
delete and promote. Identifies the workspace to act on.string
create only. Human-readable description of the workspace’s purpose.string
create only. Display name for the workspace shown in listings.string
create only. Clone from this existing workspace instead of cloning from production. Useful for branching off in-progress work.Operations
create — create a new workspace
create — create a new workspace
Creates an isolated workspace with its own data clone and GitHub branch.Behavior:Example — SQL-only workspace:Example — branch from an existing workspace:
- If
scraper_nameis provided, Soria creates the scraper (if it does not already exist) and clones its data into the workspace. The response includes the tables cloned and the row count. - If
scraper_nameis omitted, a SQL-only workspace is created. You can still create and save SQL models, but no raw data is cloned. - If
from_workspace_idis provided, data is cloned from that workspace instead of from production.
workspace_id, schema, scraper (if applicable), tables_cloned, rows (if data was cloned).Example — workspace with data clone:list — view all workspaces
list — view all workspaces
Returns all workspaces, including their promotion status, schema name, and creation time.Optional filtering: Pass Example — filter by scraper:Example response:
scraper_name to return only workspaces for that scraper.Response fields per workspace: scraper name, schema, workspace_id, created_at, promoted flag.Example — list all workspaces:delete — remove a workspace
delete — remove a workspace
Removes the workspace and its isolated data clone.Required:
workspace_idResponse fields: workspace_id, clone_dropped, schema_dropped, and any warnings encountered during cleanup.Example:promote — push workspace data to production
promote — push workspace data to production
Promotes the workspace’s data and SQL models to the production warehouse. This operation:Required: Example response:
- Pushes raw data changes to the public production schema.
- Materializes all gold and platinum tables in the warehouse.
- Locks the workspace — it becomes read-only and is marked
[PROMOTED]in listings.
Promotion triggers materialization of gold and platinum tables, which can take several minutes. Soria starts the process and returns immediately — check server logs to monitor progress.
workspace_idOnly works on scraper-based workspaces. SQL-only workspaces cannot be promoted — their models are applied directly via sql_model_save.Example:Typical workflow
1
Create a workspace
Create a workspace for the scraper you want to work with. Soria clones the current production data into an isolated schema.
2
Develop and test models
Use
sql_model_save to write models against the workspace clone. Query the clone with warehouse_query to validate output.3
List and review
List workspaces to confirm status before promoting.
4
Promote to production
When the workspace is ready, promote it. Gold and platinum tables are materialized automatically.
5
Clean up
Delete any development workspaces that are no longer needed — but only non-promoted ones.