# Record personal vocabulary review

Record one review result for a personal vocabulary entry and update spaced-repetition progress.

- Capability ID: `vocabulary.personal.record_review`
- Operation: `ielts_vocabulary_personal_record_review`
- Category: 词汇
- Endpoint: `POST /api/v1/agent/capabilities/ielts_vocabulary_personal_record_review`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: vocabulary:write
- Side effect: write
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_vocabulary_personal_record_review

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | number | 是 | Personal vocabulary item id. |
| `rating` | string | 是 | Review rating for spaced repetition. |
| `responseMs` | number | 否 | Optional answer latency in milliseconds. |

## Request example

```bash
curl -X POST \
  'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_vocabulary_personal_record_review' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer $IELTS_BUDDY_TOKEN' \
  --data '{"id":1,"rating":"again"}'
```

## Request schema

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Personal vocabulary item id."
    },
    "rating": {
      "type": "string",
      "enum": [
        "again",
        "hard",
        "good"
      ],
      "description": "Review rating for spaced repetition."
    },
    "responseMs": {
      "description": "Optional answer latency in milliseconds.",
      "type": "integer",
      "minimum": 0,
      "maximum": 300000
    }
  },
  "required": [
    "id",
    "rating"
  ],
  "additionalProperties": false
}
```

## Response envelope

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

## Errors

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