# Record built-in vocabulary review

Record one review result for an enabled licensed built-in vocabulary entry.

- Capability ID: `vocabulary.builtin.record_review`
- Operation: `ielts_vocabulary_builtin_record_review`
- Category: 词汇
- Endpoint: `POST /api/v1/agent/capabilities/ielts_vocabulary_builtin_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_builtin_record_review

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `entryId` | string | 是 | Built-in word id. |
| `rating` | string | 是 | Review rating for spaced repetition. |
| `responseMs` | number | 否 | Optional answer latency in milliseconds. |
| `setId` | string | 否 | Built-in wordbook id. |

## Request example

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

## Request schema

```json
{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "Built-in word 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
    },
    "setId": {
      "default": "core",
      "description": "Built-in wordbook id.",
      "type": "string",
      "enum": [
        "core",
        "listening",
        "reading"
      ]
    }
  },
  "required": [
    "entryId",
    "rating",
    "setId"
  ],
  "additionalProperties": false
}
```

## Response envelope

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

## Errors

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