Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Auto-update documentation for master (#72064)

github-automation-metabase3dc0f3eb088e
diff --git a/docs/api.json b/docs/api.json
index 24813edaf7a..78f1edf2c09 100644
--- a/docs/api.json
+++ b/docs/api.json
@@ -12967,7 +12967,7 @@
"post" : {
"operationId" : "post-api-agent-v1-execute",
"summary" : "POST /api/agent/v1/execute",
- "description" : "Execute an MBQL query and return results.\n\n Accepts a base64-encoded MBQL query (as returned by /v1/construct-query) and executes it,\n returning results with column metadata.\n\n Response format:\n - On success: {:data {:cols [...] :rows [...]} :row_count N :status :completed :running_time M}\n - On failure: {:status :failed :error \"message\" ...}\n\n Agent query row limits are enforced (200 rows per request).",
+ "description" : "Execute an MBQL query and return results.\n\n Accepts a base64-encoded MBQL query (as returned by /v1/construct-query) and executes it,\n returning results with column metadata.\n\n Response format:\n - On success: {:data {:cols [...] :rows [...]} :row_count N :status :completed :running_time M}\n - On failure: {:status :failed :error \"message\" ...}\n\n Standard userspace query limits are enforced (2000 rows for simple queries, 10000 for aggregated).",
"parameters" : [ ],
"responses" : {
"2XX" : {
@@ -23600,6 +23600,139 @@
"tags" : [ "/api/ee/advanced-permissions/impersonation" ]
}
},
+ "/api/ee/ai-controls/permissions" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-permissions",
+ "summary" : "GET /api/ee/ai-controls/permissions",
+ "description" : "List all metabot permissions for all groups, filling in defaults for missing entries.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "permissions" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "perm_type" : {
+ "type" : "string",
+ "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ]
+ },
+ "perm_value" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ }
+ },
+ "required" : [ "group_id", "perm_type", "perm_value" ]
+ }
+ }
+ },
+ "required" : [ "permissions" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/permissions" ]
+ },
+ "put" : {
+ "operationId" : "put-api-ee-ai-controls-permissions",
+ "summary" : "PUT /api/ee/ai-controls/permissions",
+ "description" : "Update metabot permissions for all groups. Upserts each permission entry and returns the full\n permissions list with defaults filled in.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "permissions" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "perm_type" : {
+ "type" : "string",
+ "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ]
+ },
+ "perm_value" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ }
+ },
+ "required" : [ "group_id", "perm_type", "perm_value" ]
+ }
+ }
+ },
+ "required" : [ "permissions" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "permissions" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "perm_type" : {
+ "type" : "string",
+ "enum" : [ "permission/metabot-nlq", "permission/metabot-sql-generation", "permission/metabot-other-tools", "permission/metabot" ]
+ },
+ "perm_value" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ }
+ },
+ "required" : [ "group_id", "perm_type", "perm_value" ]
+ }
+ }
+ },
+ "required" : [ "permissions" ]
+ }
+ }
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/permissions" ]
+ }
+ },
"/api/ee/audit-app/analytics-dev/export" : {
"post" : {
"operationId" : "post-api-ee-audit-app-analytics-dev-export",
@@ -33867,6 +34000,58 @@
"tags" : [ "/api/metabot/metabot" ]
}
},
+ "/api/metabot/permissions/user-permissions" : {
+ "get" : {
+ "operationId" : "get-api-metabot-permissions-user-permissions",
+ "summary" : "GET /api/metabot/permissions/user-permissions",
+ "description" : "Return the current user's resolved metabot permissions, taking the most\n permissive value across all their groups.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "permissions" : {
+ "type" : "object",
+ "properties" : {
+ "metabot" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ },
+ "metabot-nlq" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ },
+ "metabot-other-tools" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ },
+ "metabot-sql-generation" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ }
+ },
+ "required" : [ "metabot", "metabot-sql-generation", "metabot-nlq", "metabot-other-tools" ]
+ }
+ },
+ "required" : [ "permissions" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/metabot/permissions" ]
+ }
+ },
"/api/metabot/settings" : {
"get" : {
"operationId" : "get-api-metabot-settings",