/api/ee/workspace

POST /api/ee/workspace/{ws-id}/query

Execute an arbitrary SQL query in the workspace's isolated database context. Table references are remapped to isolated workspace tables. Returns the first 2000 rows of query results.

post/api/ee/workspace/{ws-id}/query

Path parameters

ws-idinteger required

value must be an integer greater than zero.

Request body

sqlstring required

Response

Successful response

messagestring nullable
running_timeinteger nullable
{"stackTrail":"components:schemas:metabase-enterprise.workspaces.types.query-result:properties:started_at:oneOf","oasType":"schema","type":"unknown","nullable":true}
status'succeeded' | 'failed' required

Changes