# Update reminder WeChat delivery

Enable or disable WeChat Bot delivery for one exact future reminder. In-page and browser reminders remain enabled.

- Capability ID: `reminders.update`
- Operation: `ielts_reminders_update`
- Category: 提醒
- Endpoint: `POST /api/v1/agent/capabilities/ielts_reminders_update`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: notifications:write
- Side effect: write
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_reminders_update

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `wechatEnabled` | boolean | 是 | wechatEnabled |
| `id` | string | 是 | id |

## Request example

```bash
curl -X POST \
  'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_reminders_update' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $IELTS_BUDDY_TOKEN" \
  --data '{"wechatEnabled":false,"id":"00000000-0000-4000-8000-000000000000"}'
```

## Request schema

```json
{
  "type": "object",
  "properties": {
    "wechatEnabled": {
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "wechatEnabled",
    "id"
  ],
  "additionalProperties": false
}
```

## Response envelope

接口结果位于 data；code 为 0 表示调用成功。


```json
{
  "code": 0,
  "data": {},
  "message": "ok"
}
```

## Errors

| HTTP | Code | Meaning |
| --- | --- | --- |
| 400 | `40001` | 请求参数不符合接口契约 |
| 401 | `40101` | 缺少或使用了无效的访问令牌 |
| 403 | `40301` | 访问令牌不包含接口所需权限 |
| 404 | `40401` | 接口或目标资源不存在 |
