Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/execute-a-sql-query.RequestSchema.json
2026-07-28 21:39:01 +07:00

49 lines
1.7 KiB
JSON

{
"title": "Body",
"body": {
"content": {
"application/json": {
"schema": {
"properties": {
"catalog": { "nullable": true, "type": "string" },
"client_id": { "nullable": true, "type": "string" },
"ctas_method": { "nullable": true, "type": "string" },
"database_id": { "type": "integer" },
"expand_data": { "nullable": true, "type": "boolean" },
"queryLimit": { "nullable": true, "type": "integer" },
"runAsync": { "nullable": true, "type": "boolean" },
"schema": { "nullable": true, "type": "string" },
"select_as_cta": { "nullable": true, "type": "boolean" },
"sql": { "type": "string" },
"sql_editor_id": { "nullable": true, "type": "string" },
"tab": { "nullable": true, "type": "string" },
"templateParams": { "nullable": true, "type": "string" },
"tmp_table_name": { "nullable": true, "type": "string" }
},
"required": ["database_id", "sql"],
"type": "object",
"title": "ExecutePayloadSchema"
},
"example": {
"catalog": "string",
"client_id": "string",
"ctas_method": "string",
"database_id": 1,
"expand_data": true,
"queryLimit": 1,
"runAsync": true,
"schema": "string",
"select_as_cta": true,
"sql": "string",
"sql_editor_id": "string",
"tab": "string",
"templateParams": "string",
"tmp_table_name": "string"
}
}
},
"description": "SQL query and params",
"required": true
}
}