---
title: "Từ khoá theo dõi / loại trừ"
locale: vi
url: https://tlg.builera.app/docs/reference/rest/discovery.save_settings
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# Từ khoá theo dõi / loại trừ

Thay toàn bộ từ khoá theo dõi và loại trừ của workspace.

Thay toàn bộ từ khoá theo dõi và loại trừ của workspace.

## Thông tin

| Tên | Giá trị |
| --- | --- |
| Mã | `discovery.save_settings` |
| Mã mới (v2) | `discovery_settings.save` |
| Scope cần | `discovery.write` |
| Mức | Ghi |
| Có thể cần xác nhận | Không |
| Kiểu chạy | Trả kết quả ngay |
| Cần `Idempotency-Key` | Không |
| Vai trò thành viên được phép | `owner`, `manager` |
| Trong app | Tìm khách → Từ khoá |

## Trường vào

| Trường | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- |
| `watchKeywords` | `chữ[]` | Có |   |
| `excludeKeywords` | `chữ[]` | Có |   |

## Ví dụ gọi

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/discovery.save_settings \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"watchKeywords":[],"excludeKeywords":[]}'
```

## Trường ra (`data`)

| Trường | Kiểu | Bắt buộc |
| --- | --- | --- |
| `ok` | `true` | Có |
| `watchKeywords` | `chữ[]` | Có |
| `excludeKeywords` | `chữ[]` | Có |

## Ví dụ trả về

```json
{
  "data": {
    "ok": true,
    "watchKeywords": [
      "text"
    ],
    "excludeKeywords": [
      "text"
    ]
  }
}
```

## Dùng qua MCP

Không có tên sẵn trong profile nào: gọi `tools_describe` rồi `tools_run` với `code: "discovery.save_settings"`. Tên tool khi được liệt kê: `discovery_save_settings`.
