Skip to content

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

`collection-id` only works with `shallow=true` (#64476)

John Swansonc756f9a9b0d6
diff --git a/src/metabase/collections_rest/api.clj b/src/metabase/collections_rest/api.clj
index 14406704052..ce1738c33dd 100644
--- a/src/metabase/collections_rest/api.clj
+++ b/src/metabase/collections_rest/api.clj
@@ -222,7 +222,10 @@
By default, looks at the `analytics` (if enabled) and regular (`nil`) namespaces. You can optionally pass a
`namespace` argument, or one or many `namespaces`, to specify the particular collection namespaces you wish to look
- at. For example, `namespaces=analytics&namespaces=` would match the default behavior."
+ at. For example, `namespaces=analytics&namespaces=` would match the default behavior.
+
+ When `shallow` is true, takes an optional `collection-id` and returns only the requested collection (or
+ the root, if `collection-id` is `nil`)."
[_route-params
{:keys [exclude-archived exclude-other-user-collections include-library
namespace namespaces shallow collection-id]}