feat: funciones Python para API Metabase
Añade módulo Python con funciones para la API de Metabase en dominio infra. Incluye cliente HTTP, auth, y CRUD de cards, dashboards y users. Proyecto gestionado con uv (pyproject.toml).
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: metabase_delete_dashboard
|
||||
kind: function
|
||||
lang: py
|
||||
domain: infra
|
||||
version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "def metabase_delete_dashboard(client: MetabaseClient, dashboard_id: int) -> None"
|
||||
description: "Elimina permanentemente un dashboard. IRREVERSIBLE. Preferir archived=True. Endpoint: DELETE /api/dashboard/:id."
|
||||
tags: [metabase, dashboard, delete, api, python]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
returns_optional: false
|
||||
error_type: "error_go_core"
|
||||
imports: [httpx]
|
||||
tested: false
|
||||
tests: []
|
||||
test_file_path: ""
|
||||
file_path: "python/functions/metabase/dashboards.py"
|
||||
---
|
||||
|
||||
## Ejemplo
|
||||
|
||||
```python
|
||||
metabase_delete_dashboard(client, 1)
|
||||
# Preferir: metabase_update_dashboard(client, 1, archived=True)
|
||||
```
|
||||
|
||||
## Notas
|
||||
|
||||
IRREVERSIBLE. Preferir soft-delete con metabase_update_dashboard(archived=True).
|
||||
Reference in New Issue
Block a user