# Create reusable mock paper

Create one reusable user mock paper from exact published Part ids returned by practice.search_parts. The selected Parts must form complete IELTS sections. Returns a stable mock_paper contentRef for catalog entry or study-plan tasks.

- Capability ID: `mock.create_paper`
- Operation: `ielts_mock_create_paper`
- Category: 模考
- Endpoint: `POST /api/v1/agent/capabilities/ielts_mock_create_paper`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: practice:write
- Side effect: write
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_mock_create_paper

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `partIds` | number[] | 是 | Exact Part ids returned by practice.search_parts. |
| `title` | string | 是 | Name of the reusable mock paper. |

## Request example

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

## Request schema

```json
{
  "type": "object",
  "properties": {
    "partIds": {
      "minItems": 1,
      "maxItems": 11,
      "type": "array",
      "items": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "description": "Exact Part ids returned by practice.search_parts."
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "Name of the reusable mock paper."
    }
  },
  "required": [
    "partIds",
    "title"
  ],
  "additionalProperties": false
}
```

## Response envelope

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

## Errors

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