# revoke_invite

> 這個 AirBuild MCP 工具會讓邀請連結失效。僅限擁有者。

Source: https://air.build/tw/docs/mcp-tools/revoke_invite/

`revoke_invite` 會讓邀請連結失效：其他人無法再透過它加入團隊。已經透過它加入的人仍會留在團隊中；若要移除某人，請使用 [remove_person](https://air.build/tw/docs/mcp-tools/remove_person/)。已撤銷的連結無法重新啟用：請用 [create_invite](https://air.build/tw/docs/mcp-tools/create_invite/) 建立新連結。撤銷已撤銷的連結不會有任何變化。只有團隊擁有者可以撤銷邀請連結；成員呼叫會失敗。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 否 | 是 | 是 |

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `inviteId` | 字串（UUID） | 是 | — | 邀請，來自 [list_invites](https://air.build/tw/docs/mcp-tools/list_invites/) 或 [create_invite](https://air.build/tw/docs/mcp-tools/create_invite/) |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `revoked` | `true` |

```json
{ "revoked": true }
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| Only the Team's owner can revoke invite links. | 你是這個團隊的成員，而不是擁有者 | 請擁有者操作 |
| Invite not found. | 這個團隊中沒有該 ID 的邀請 | 從 [list_invites](https://air.build/tw/docs/mcp-tools/list_invites/) 取得 ID |
| Team not found. | 團隊不存在，或你不在其中 | 使用 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 傳回的 `teamId` |

所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 範例

```json
{"name": "revoke_invite", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "inviteId": "00000000-0000-0000-0000-000000000000"}}
```
