# Configure WeChat task reminders

Enable or disable WeChat iLink delivery for exact existing task ids. It requires a connected iLink and globally enabled WeChat notifications, and never changes a plan or task schedule.

- Capability ID: `notifications.configure_wechat_task_reminders`
- Operation: `ielts_notifications_configure_wechat_task_reminders`
- Category: 学习计划
- Endpoint: `POST /api/v1/agent/capabilities/ielts_notifications_configure_wechat_task_reminders`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: notifications:write
- Side effect: write
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_notifications_configure_wechat_task_reminders

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `tasks` | record[] | 是 | tasks |
| `tasks.enabled` | boolean | 是 | enabled |
| `tasks.taskId` | number | 是 | taskId |

## Request example

```bash
curl -X POST \
  'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_notifications_configure_wechat_task_reminders' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer $IELTS_BUDDY_TOKEN' \
  --data '{"tasks":[]}'
```

## Request schema

```json
{
  "type": "object",
  "properties": {
    "tasks": {
      "minItems": 1,
      "maxItems": 90,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "taskId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "enabled",
          "taskId"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "tasks"
  ],
  "additionalProperties": false
}
```

## Response envelope

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

## Errors

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