---
name: metabase_resolve_document_comment
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_resolve_document_comment(client: MetabaseClient, comment_id: int) -> dict"
description: "Marca un comentario como resuelto (is_resolved=True). Los comentarios resueltos se ocultan en la UI pero siguen consultables via metabase_list_document_comments(include_resolved=True). Endpoint: PUT /api/comment/:id."
tags: [metabase, document, comments, resolve, api, python, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
  - name: comment_id
    desc: "ID del comentario a marcar como resuelto"
output: "dict: comentario actualizado con is_resolved=True"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/documents.py"
---

## Ejemplo

```python
open_comments = metabase_list_document_comments(client, 29, include_resolved=False)
for c in open_comments:
    if "obsoleto" in _plaintext(c["content"]):
        metabase_resolve_document_comment(client, c["id"])
```

## Notas

El endpoint `PUT /api/comment/:id` acepta cualquier campo actualizable (content, is_resolved, etc.); esta funcion solo envia `is_resolved=True` para mantener contrato estrecho. Para editar contenido usar `PUT /api/comment/:id` directo via client.
