Skip to content

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

Update generated docs (master) (#67966)

github-automation-metabase6cdb558f0eef
diff --git a/docs/api.json b/docs/api.json
index 216004b642e..52e510d9fbf 100644
--- a/docs/api.json
+++ b/docs/api.json
@@ -1259,6 +1259,58 @@
}
}
},
+ "metabase-enterprise.dependencies.api.base-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : { }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.broken-cards-response" : {
+ "type" : "object",
+ "properties" : {
+ "bad_cards" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema.card"
+ }
+ },
+ "bad_transforms" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.transforms.schema.transform"
+ }
+ },
+ "success" : {
+ "type" : "boolean"
+ }
+ },
+ "required" : [ "success" ]
+ },
"metabase-enterprise.dependencies.api.card-body" : {
"description" : "Schema for an instance of a `:model/Card` (everything is optional to support updates).",
"type" : "object",
@@ -1270,6 +1322,13 @@
"type" : "null"
} ]
},
+ "parameter_mappings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
+ }, {
+ "type" : "null"
+ } ]
+ },
"id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
@@ -1277,16 +1336,23 @@
"type" : "null"
} ]
},
- "parameter_mappings" : {
+ "name" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "parameters" : {
+ "database_id" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "document_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
}, {
"type" : "null"
} ]
@@ -1298,23 +1364,439 @@
"type" : "null"
} ]
},
+ "collection_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
}, {
"type" : "null"
} ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dashboard_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
+ }, {
+ "type" : "null"
+ } ]
}
}
},
- "metabase-enterprise.dependencies.api.transform-body" : {
+ "metabase-enterprise.dependencies.api.card-entity" : {
"type" : "object",
"properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "dashboard" : { },
+ "last-edit-info" : { },
+ "view_count" : { },
+ "collection" : { },
+ "document" : { },
+ "creator" : { },
+ "name" : { },
+ "database_id" : { },
+ "document_id" : { },
+ "result_metadata" : { },
+ "query_type" : { },
+ "collection_id" : { },
+ "type" : { },
+ "created_at" : { },
+ "display" : { },
+ "creator_id" : { },
+ "description" : { },
+ "dashboard_id" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
"id" : {
- "description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
},
+ "type" : {
+ "const" : "card"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.dashboard-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "last-edit-info" : { },
+ "view_count" : { },
+ "collection" : { },
+ "moderation_reviews" : { },
+ "creator" : { },
+ "name" : { },
+ "collection_id" : { },
+ "created_at" : { },
+ "creator_id" : { },
+ "description" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "dashboard"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.document-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "collection" : { },
+ "collection_id" : { },
+ "created_at" : { },
+ "creator" : { },
+ "description" : { },
+ "name" : { },
+ "view_count" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "document"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.entity" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.table-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.card-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.snippet-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.transform-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.dashboard-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.document-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.sandbox-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.segment-entity"
+ }, {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.measure-entity"
+ } ]
+ },
+ "metabase-enterprise.dependencies.api.entity-id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "metabase-enterprise.dependencies.api.graph-response" : {
+ "type" : "object",
+ "properties" : {
+ "edges" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "from_entity_id" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity-id"
+ },
+ "from_entity_type" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ },
+ "to_entity_id" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity-id"
+ },
+ "to_entity_type" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ }
+ },
+ "required" : [ "from_entity_type", "from_entity_id", "to_entity_type", "to_entity_id" ]
+ }
+ },
+ "nodes" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
+ }
+ }
+ },
+ "required" : [ "nodes", "edges" ]
+ },
+ "metabase-enterprise.dependencies.api.measure-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "created_at" : { },
+ "creator" : { },
+ "creator_id" : { },
+ "description" : { },
+ "name" : { },
+ "table" : { },
+ "table_id" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "measure"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.sandbox-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "table" : { },
+ "table_id" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "sandbox"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.segment-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "dashboard" : { },
+ "last-edit-info" : { },
+ "view_count" : { },
+ "collection" : { },
+ "document" : { },
+ "creator" : { },
+ "name" : { },
+ "database_id" : { },
+ "document_id" : { },
+ "result_metadata" : { },
+ "query_type" : { },
+ "collection_id" : { },
+ "type" : { },
+ "created_at" : { },
+ "display" : { },
+ "creator_id" : { },
+ "description" : { },
+ "dashboard_id" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "segment"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.snippet-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "collection" : { },
+ "collection_id" : { },
+ "created_at" : { },
+ "creator" : { },
+ "creator_id" : { },
+ "description" : { },
+ "name" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "snippet"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.table-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "db" : { },
+ "db_id" : { },
+ "description" : { },
+ "display_name" : { },
+ "fields" : { },
+ "name" : { },
+ "schema" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "table"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.transform-body" : {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
+ },
"name" : {
"type" : "string"
},
@@ -1345,6 +1827,53 @@
},
"required" : [ "id" ]
},
+ "metabase-enterprise.dependencies.api.transform-entity" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "creator" : { },
+ "description" : { },
+ "last_run" : { },
+ "name" : { },
+ "table" : { }
+ }
+ },
+ "dependents_count" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "errors" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.error"
+ },
+ "uniqueItems" : true
+ },
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "const" : "transform"
+ }
+ },
+ "required" : [ "id", "type", "data", "dependents_count" ]
+ },
+ "metabase-enterprise.dependencies.api.usages" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity-id"
+ }
+ },
+ "metabase-enterprise.dependencies.dependency-types.dependency-types" : {
+ "type" : "string",
+ "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ]
+ },
"metabase-enterprise.metabot-v3.client.schema.message" : {
"type" : "object",
"properties" : {
@@ -4044,6 +4573,28 @@
"$ref" : "#/components/schemas/metabase-enterprise.transforms.schema.append-config"
} ]
},
+ "metabase-enterprise.transforms.schema.transform" : {
+ "type" : "object",
+ "properties" : {
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "source" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.transforms.schema.transform-source"
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.transforms.schema.transform-target"
+ }
+ },
+ "required" : [ "name", "source", "target" ]
+ },
"metabase-enterprise.transforms.schema.transform-source" : {
"oneOf" : [ {
"type" : "object",
@@ -5140,6 +5691,11 @@
},
"required" : [ "id", "email", "first_name", "last_name", "timestamp" ]
},
+ "metabase.documents.schema..document.id" : {
+ "description" : "Valid Document ID",
+ "type" : "integer",
+ "minimum" : 1
+ },
"metabase.legacy-mbql.schema.!=" : {
"description" : "schema for a valid MBQL 4 :!= clause",
"allOf" : [ ]
@@ -8054,6 +8610,11 @@
"type" : "integer",
"minimum" : 1
},
+ "metabase.lib.schema.id.collection" : {
+ "description" : "Valid Collection ID",
+ "type" : "integer",
+ "minimum" : 1
+ },
"metabase.lib.schema.id.dashboard" : {
"description" : "Valid Dashboard ID",
"type" : "integer",
@@ -8089,6 +8650,11 @@
"type" : "integer",
"minimum" : 1
},
+ "metabase.lib.schema.id.sandbox" : {
+ "description" : "Valid Sandbox ID",
+ "type" : "integer",
+ "minimum" : 1
+ },
"metabase.lib.schema.id.saved-questions-virtual-database" : {
"description" : "The ID used to signify that a database is 'virtual' rather than physical.\n\n A fake integer ID is used so as to minimize the number of changes that need to be made on the frontend -- by using\n something that would otherwise be a legal ID, *nothing* need change there, and the frontend can query against this\n 'database' none the wiser. (This integer ID is negative which means it will never conflict with a *real* database\n ID.)\n\n This ID acts as a sort of flag. The relevant places in the middleware can check whether the DB we're querying is\n this 'virtual' database and take the appropriate actions.",
"const" : -1337
@@ -8108,6 +8674,11 @@
"type" : "integer",
"minimum" : 1
},
+ "metabase.lib.schema.id.transform" : {
+ "description" : "Valid Transform ID",
+ "type" : "integer",
+ "minimum" : 1
+ },
"metabase.lib.schema.id.user" : {
"description" : "Valid User ID",
"type" : "integer",
@@ -10455,8 +11026,91 @@
"type" : "string",
"enum" : [ "day", "day-of-month", "day-of-week", "day-of-year", "default", "hour", "hour-of-day", "millisecond", "minute", "minute-of-hour", "month", "month-of-year", "quarter", "quarter-of-year", "second", "second-of-minute", "week", "week-of-year", "year", "year-of-era" ]
},
- "metabase.lib.schema.util.distinct-mbql-clauses" : { },
- "metabase.lib.schema.util.unique-uuids" : { },
+ "metabase.lib.schema.util.distinct-mbql-clauses" : { },
+ "metabase.lib.schema.util.unique-uuids" : { },
+ "metabase.lib.schema.validate.duplicate-column-error" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "validate/duplicate-column"
+ }
+ },
+ "required" : [ "type", "name" ]
+ },
+ "metabase.lib.schema.validate.error" : {
+ "allOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.validate-error-type"
+ }
+ },
+ "required" : [ "type" ]
+ }, {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.missing-column-error"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.missing-table-alias-error"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.duplicate-column-error"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.syntax-error"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.validate.validation-exception-error"
+ } ]
+ } ]
+ },
+ "metabase.lib.schema.validate.missing-column-error" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "validate/missing-column"
+ }
+ },
+ "required" : [ "type", "name" ]
+ },
+ "metabase.lib.schema.validate.missing-table-alias-error" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "validate/missing-table-alias"
+ }
+ },
+ "required" : [ "type", "name" ]
+ },
+ "metabase.lib.schema.validate.syntax-error" : {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "const" : "validate/syntax-error"
+ }
+ },
+ "required" : [ "type" ]
+ },
+ "metabase.lib.schema.validate.validate-error-type" : {
+ "type" : "string"
+ },
+ "metabase.lib.schema.validate.validation-exception-error" : {
+ "type" : "object",
+ "properties" : {
+ "message" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "validate/validation-exception-error"
+ }
+ },
+ "required" : [ "type", "message" ]
+ },
"metabase.logger.api.log-level" : {
"type" : "string",
"enum" : [ "off", "fatal", "error", "warn", "info", "debug", "trace" ]
@@ -11456,6 +12110,13 @@
"type" : "null"
} ]
},
+ "parameter_mappings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
+ }, {
+ "type" : "null"
+ } ]
+ },
"id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
@@ -11463,16 +12124,23 @@
"type" : "null"
} ]
},
- "parameter_mappings" : {
+ "name" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "parameters" : {
+ "database_id" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "document_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
}, {
"type" : "null"
} ]
@@ -11484,12 +12152,40 @@
"type" : "null"
} ]
},
+ "collection_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
}, {
"type" : "null"
} ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dashboard_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
+ }, {
+ "type" : "null"
+ } ]
}
}
},
@@ -20522,6 +21218,62 @@
"tags" : [ "/api/ee/content-translation" ]
}
},
+ "/api/ee/content-translation/dictionary" : {
+ "get" : {
+ "summary" : "GET /api/ee/content-translation/dictionary",
+ "description" : "Fetch the content translation dictionary for authenticated users (auth-based embedding flows).",
+ "parameters" : [ {
+ "in" : "query",
+ "name" : "locale",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "map where {:data -> <sequence of map where {:locale -> <value must be a non-blank string.>, :msgid -> <value must be a non-blank string.>, :msgstr -> <string>}>}",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "locale" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "msgid" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "msgstr" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "locale", "msgid", "msgstr" ]
+ }
+ }
+ },
+ "required" : [ "data" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/content-translation" ]
+ }
+ },
"/api/ee/content-translation/dictionary/{token}" : {
"get" : {
"summary" : "GET /api/ee/content-translation/dictionary/{token}",
@@ -21149,7 +21901,14 @@
"parameters" : [ ],
"responses" : {
"2XX" : {
- "description" : "Successful response"
+ "description" : "map where {:success -> <boolean>, :bad_cards (optional) -> <sequence of Schema for an instance of a `:model/Card` (everything is optional to support updates).>, :bad_transforms (optional) -> <sequence of map where {:description (optional) -> <nullable string>, :name -> <string>, :source -> <one of <:query = map where {:type -> <must equal :query>, :query -> <Schema for Card.dataset_query. Cards are for some wacko reason allowed to be saved with empty queries (`{}`), but not\n `NULL` ones, because the column is non-null. This sorta seems like an oversight but fixing all the tests that save\n Cards with empty queries is too much to attempt at this point. So a Card either has an empty query or a valid MBQL 5\n query.>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>} | :python = map where {:source-database (optional) -> <integer>, :source-tables -> <map from <string> to <Either a table ID (int) or a reference map.>>, :type -> <must equal :python>, :body -> <string>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>}> dispatched by clojure.core$comp$fn__5897@253d9746>, :target -> <one of <table = map where {:database (optional) -> <integer>, :type -> <must equal table>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>} | table-incremental = map where {:database (optional) -> <integer>, :type -> <must equal table-incremental>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>, :target-incremental-strategy -> <one of <append = map where {:type -> <must equal append>}> dispatched by :type>}> dispatched by :type>}>}",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
+ }
+ }
+ }
},
"4XX" : {
"description" : "Client error response"
@@ -21177,7 +21936,14 @@
"parameters" : [ ],
"responses" : {
"2XX" : {
- "description" : "Successful response"
+ "description" : "map where {:success -> <boolean>, :bad_cards (optional) -> <sequence of Schema for an instance of a `:model/Card` (everything is optional to support updates).>, :bad_transforms (optional) -> <sequence of map where {:description (optional) -> <nullable string>, :name -> <string>, :source -> <one of <:query = map where {:type -> <must equal :query>, :query -> <Schema for Card.dataset_query. Cards are for some wacko reason allowed to be saved with empty queries (`{}`), but not\n `NULL` ones, because the column is non-null. This sorta seems like an oversight but fixing all the tests that save\n Cards with empty queries is too much to attempt at this point. So a Card either has an empty query or a valid MBQL 5\n query.>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>} | :python = map where {:source-database (optional) -> <integer>, :source-tables -> <map from <string> to <Either a table ID (int) or a reference map.>>, :type -> <must equal :python>, :body -> <string>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>}> dispatched by clojure.core$comp$fn__5897@253d9746>, :target -> <one of <table = map where {:database (optional) -> <integer>, :type -> <must equal table>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>} | table-incremental = map where {:database (optional) -> <integer>, :type -> <must equal table-incremental>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>, :target-incremental-strategy -> <one of <append = map where {:type -> <must equal append>}> dispatched by :type>}> dispatched by :type>}>}",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
+ }
+ }
+ }
},
"4XX" : {
"description" : "Client error response"
@@ -21196,9 +21962,7 @@
"type" : "string"
},
"id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
},
"name" : {
"description" : "snippet names cannot include '}' or start with spaces"
@@ -21219,7 +21983,14 @@
"parameters" : [ ],
"responses" : {
"2XX" : {
- "description" : "Successful response"
+ "description" : "map where {:success -> <boolean>, :bad_cards (optional) -> <sequence of Schema for an instance of a `:model/Card` (everything is optional to support updates).>, :bad_transforms (optional) -> <sequence of map where {:description (optional) -> <nullable string>, :name -> <string>, :source -> <one of <:query = map where {:type -> <must equal :query>, :query -> <Schema for Card.dataset_query. Cards are for some wacko reason allowed to be saved with empty queries (`{}`), but not\n `NULL` ones, because the column is non-null. This sorta seems like an oversight but fixing all the tests that save\n Cards with empty queries is too much to attempt at this point. So a Card either has an empty query or a valid MBQL 5\n query.>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>} | :python = map where {:source-database (optional) -> <integer>, :source-tables -> <map from <string> to <Either a table ID (int) or a reference map.>>, :type -> <must equal :python>, :body -> <string>, :source-incremental-strategy (optional) -> <one of <checkpoint = map where {:type -> <must equal checkpoint>, :checkpoint-filter (optional) -> <string>, :checkpoint-filter-unique-key (optional) -> <regex pattern matching #\"^column-unique-key-v\\d+\\$.+$\">}> dispatched by :type>}> dispatched by clojure.core$comp$fn__5897@253d9746>, :target -> <one of <table = map where {:database (optional) -> <integer>, :type -> <must equal table>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>} | table-incremental = map where {:database (optional) -> <integer>, :type -> <must equal table-incremental>, :schema (optional) -> <value must be a non-blank string., or null>, :name -> <string>, :target-incremental-strategy -> <one of <append = map where {:type -> <must equal append>}> dispatched by :type>}> dispatched by :type>}>}",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
+ }
+ }
+ }
},
"4XX" : {
"description" : "Client error response"
@@ -21258,8 +22029,7 @@
"name" : "type",
"required" : false,
"schema" : {
- "type" : "string",
- "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ]
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
}
}, {
"in" : "query",
@@ -21271,7 +22041,80 @@
} ],
"responses" : {
"2XX" : {
- "description" : "Successful response"
+ "description" : "map where {:nodes -> <sequence of one of <:table = map where {:id -> <integer greater than 0>, :type -> <must equal :table>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :display_name (optional) -> <anything>, :db_id (optional) -> <anything>, :db (optional) -> <anything>, :schema (optional) -> <anything>, :fields (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :card = map where {:id -> <integer greater than 0>, :type -> <must equal :card>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :snippet = map where {:id -> <integer greater than 0>, :type -> <must equal :snippet>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :transform = map where {:id -> <integer greater than 0>, :type -> <must equal :transform>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :creator (optional) -> <anything>, :table (optional) -> <anything>, :last_run (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :dashboard = map where {:id -> <integer greater than 0>, :type -> <must equal :dashboard>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :moderation_reviews (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :document = map where {:id -> <integer greater than 0>, :type -> <must equal :document>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :sandbox = map where {:id -> <integer greater than 0>, :type -> <must equal :sandbox>, :data -> <map where {:table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :segment = map where {:id -> <integer greater than 0>, :type -> <must equal :segment>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :measure = map where {:id -> <integer greater than 0>, :type -> <must equal :measure>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>}> dispatched by :type>, :edges -> <sequence of map where {:from_entity_type -> <enum of :transform, :table, :snippet, :dashboard, :sandbox, :measure, :card, :document, :segment>, :from_entity_id -> <integer greater than 0>, :to_entity_type -> <enum of :transform, :table, :snippet, :dashboard, :sandbox, :measure, :card, :document, :segment>, :to_entity_id -> <integer greater than 0>}>}",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.graph-response"
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/dependencies" ]
+ }
+ },
+ "/api/ee/dependencies/graph/broken" : {
+ "get" : {
+ "summary" : "GET /api/ee/dependencies/graph/broken",
+ "description" : "Returns a list of all items with broken queries.\n\n Accepts optional parameters for filtering:\n - `types`: List of entity types to include (e.g., `[:card :transform :snippet :dashboard]`)\n - `card_types`: List of card types to include when filtering cards (e.g., `[:question :model :metric]`)\n - `query`: Search string to filter by name or location\n\n Returns a list of broken items, each with `:id`, `:type`, `:data`, and `:error`s fields.",
+ "parameters" : [ {
+ "in" : "query",
+ "name" : "types",
+ "required" : false,
+ "schema" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ }
+ } ]
+ }
+ }, {
+ "in" : "query",
+ "name" : "card_types",
+ "required" : false,
+ "schema" : {
+ "anyOf" : [ {
+ "type" : "string",
+ "enum" : [ "question", "metric", "model" ]
+ }, {
+ "type" : "array",
+ "items" : {
+ "type" : "string",
+ "enum" : [ "question", "metric", "model" ]
+ }
+ } ]
+ }
+ }, {
+ "in" : "query",
+ "name" : "query",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "sequence of one of <:table = map where {:id -> <integer greater than 0>, :type -> <must equal :table>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :display_name (optional) -> <anything>, :db_id (optional) -> <anything>, :db (optional) -> <anything>, :schema (optional) -> <anything>, :fields (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :card = map where {:id -> <integer greater than 0>, :type -> <must equal :card>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :snippet = map where {:id -> <integer greater than 0>, :type -> <must equal :snippet>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :transform = map where {:id -> <integer greater than 0>, :type -> <must equal :transform>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :creator (optional) -> <anything>, :table (optional) -> <anything>, :last_run (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :dashboard = map where {:id -> <integer greater than 0>, :type -> <must equal :dashboard>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :moderation_reviews (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :document = map where {:id -> <integer greater than 0>, :type -> <must equal :document>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :sandbox = map where {:id -> <integer greater than 0>, :type -> <must equal :sandbox>, :data -> <map where {:table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :segment = map where {:id -> <integer greater than 0>, :type -> <must equal :segment>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :measure = map where {:id -> <integer greater than 0>, :type -> <must equal :measure>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>}> dispatched by :type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
+ }
+ }
+ }
+ }
},
"4XX" : {
"description" : "Client error response"
@@ -21301,16 +22144,14 @@
"name" : "type",
"required" : true,
"schema" : {
- "type" : "string",
- "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ]
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
}
}, {
"in" : "query",
"name" : "dependent_type",
"required" : true,
"schema" : {
- "type" : "string",
- "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ]
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
}
}, {
"in" : "query",
@@ -21318,7 +22159,7 @@
"required" : false,
"schema" : {
"type" : "string",
- "enum" : [ "question", "model", "metric" ]
+ "enum" : [ "question", "metric", "model" ]
}
}, {
"in" : "query",
@@ -21330,7 +22171,83 @@
} ],
"responses" : {
"2XX" : {
- "description" : "Successful response"
+ "description" : "sequence of one of <:table = map where {:id -> <integer greater than 0>, :type -> <must equal :table>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :display_name (optional) -> <anything>, :db_id (optional) -> <anything>, :db (optional) -> <anything>, :schema (optional) -> <anything>, :fields (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :card = map where {:id -> <integer greater than 0>, :type -> <must equal :card>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :snippet = map where {:id -> <integer greater than 0>, :type -> <must equal :snippet>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :transform = map where {:id -> <integer greater than 0>, :type -> <must equal :transform>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :creator (optional) -> <anything>, :table (optional) -> <anything>, :last_run (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :dashboard = map where {:id -> <integer greater than 0>, :type -> <must equal :dashboard>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :moderation_reviews (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :document = map where {:id -> <integer greater than 0>, :type -> <must equal :document>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :sandbox = map where {:id -> <integer greater than 0>, :type -> <must equal :sandbox>, :data -> <map where {:table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :segment = map where {:id -> <integer greater than 0>, :type -> <must equal :segment>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :measure = map where {:id -> <integer greater than 0>, :type -> <must equal :measure>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>}> dispatched by :type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
+ }
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/dependencies" ]
+ }
+ },
+ "/api/ee/dependencies/graph/unreferenced" : {
+ "get" : {
+ "summary" : "GET /api/ee/dependencies/graph/unreferenced",
+ "description" : "Returns a list of all unreferenced items in the instance.\n An unreferenced item is one that is not a dependency of any other item.\n\n Accepts optional parameters for filtering:\n - types: List of entity types to include (e.g., [:card :transform :snippet :dashboard])\n - card_types: List of card types to include when filtering cards (e.g., [:question :model :metric])\n - query: Search string to filter by name or location\n\n Returns a list of unreferenced items, each with :id, :type, and :data fields.",
+ "parameters" : [ {
+ "in" : "query",
+ "name" : "types",
+ "required" : false,
+ "schema" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
+ }
+ } ]
+ }
+ }, {
+ "in" : "query",
+ "name" : "card_types",
+ "required" : false,
+ "schema" : {
+ "anyOf" : [ {
+ "type" : "string",
+ "enum" : [ "question", "metric", "model" ]
+ }, {
+ "type" : "array",
+ "items" : {
+ "type" : "string",
+ "enum" : [ "question", "metric", "model" ]
+ }
+ } ]
+ }
+ }, {
+ "in" : "query",
+ "name" : "query",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "sequence of one of <:table = map where {:id -> <integer greater than 0>, :type -> <must equal :table>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :display_name (optional) -> <anything>, :db_id (optional) -> <anything>, :db (optional) -> <anything>, :schema (optional) -> <anything>, :fields (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :card = map where {:id -> <integer greater than 0>, :type -> <must equal :card>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :snippet = map where {:id -> <integer greater than 0>, :type -> <must equal :snippet>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :transform = map where {:id -> <integer greater than 0>, :type -> <must equal :transform>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :creator (optional) -> <anything>, :table (optional) -> <anything>, :last_run (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :dashboard = map where {:id -> <integer greater than 0>, :type -> <must equal :dashboard>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :moderation_reviews (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :document = map where {:id -> <integer greater than 0>, :type -> <must equal :document>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :view_count (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :sandbox = map where {:id -> <integer greater than 0>, :type -> <must equal :sandbox>, :data -> <map where {:table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :segment = map where {:id -> <integer greater than 0>, :type -> <must equal :segment>, :data -> <map where {:name (optional) -> <anything>, :type (optional) -> <anything>, :display (optional) -> <anything>, :database_id (optional) -> <anything>, :view_count (optional) -> <anything>, :query_type (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :description (optional) -> <anything>, :result_metadata (optional) -> <anything>, :last-edit-info (optional) -> <anything>, :collection (optional) -> <anything>, :collection_id (optional) -> <anything>, :dashboard (optional) -> <anything>, :dashboard_id (optional) -> <anything>, :document (optional) -> <anything>, :document_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>} | :measure = map where {:id -> <integer greater than 0>, :type -> <must equal :measure>, :data -> <map where {:name (optional) -> <anything>, :description (optional) -> <anything>, :created_at (optional) -> <anything>, :creator (optional) -> <anything>, :creator_id (optional) -> <anything>, :table (optional) -> <anything>, :table_id (optional) -> <anything>}>, :dependents_count -> <nullable map from <enum of :table, :snippet, :transform, :dashboard, :document, :sandbox, :segment, :question, :model, :metric, :measure> to <integer greater than 0>>, :errors (optional) -> <set of map where {:type -> <keyword, and function>}, and one of <:validate/missing-column = map where {:type -> <must equal :validate/missing-column>, :name -> <string>} | :validate/missing-table-alias = map where {:type -> <must equal :validate/missing-table-alias>, :name -> <string>} | :validate/duplicate-column = map where {:type -> <must equal :validate/duplicate-column>, :name -> <string>} | :validate/syntax-error = map where {:type -> <must equal :validate/syntax-error>} | :validate/validation-exception-error = map where {:type -> <must equal :validate/validation-exception-error>, :message -> <string>}> dispatched by metabase.lib.schema.validate$eval52627$fn__52628@e84c3ab>}> dispatched by :type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
+ }
+ }
+ }
+ }
},
"4XX" : {
"description" : "Client error response"