---
name: metabase_update_card
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_update_card(client: MetabaseClient, card_id: int, **fields) -> dict"
description: "Actualiza campos de una card/pregunta via kwargs. Campos: name, description, display, dataset_query, collection_id, archived. Endpoint: PUT /api/card/:id."
tags: [metabase, card, question, update, api, python]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
  - name: card_id
    desc: "ID de la card a actualizar"
  - name: fields
    desc: "kwargs con campos a actualizar (name, description, display, dataset_query, collection_id, archived)"
output: "dict: objeto card actualizado"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/cards.py"
---

## Ejemplo

```python
metabase_update_card(client, 42, name="New Name", archived=True)
```

## Notas

Soft-delete con `archived=True`. Para delete permanente usar metabase_delete_card.
