**版本：202601**

# 更新自定义页面

**PUT** `/openapi/2026-01/pages/:id`

通过自定义页面 ID 更新指定自定义页面的详情。

## 请求

**Path参数**

- `id` int32 (required)

  唯一标识

**application/json**

**请求体 | 示例**

**请求体 (required)**

- `page` object (required)

  页码

  - `title` string (required)

    页面标题
  - `content` string

    页面的 HTML 内容
  - `url` string

    页面的 URL，格式应为 "/pages/xxxx"
  - `meta_title` string

    页面的 SEO 标题
  - `meta_keywords` string[]

    页面的 SEO 关键词
  - `meta_description` string

    页面的 SEO 描述
  - `independent_seo` boolean

    是否独立管理 SEO

```json
{
  "page": {
    "title": "string",
    "content": "string",
    "url": "string",
    "meta_title": "string",
    "meta_keywords": [
      "string"
    ],
    "meta_description": "string",
    "independent_seo": true
  }
}
```

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `page` object

    页码

    - `id` int32

      页面的唯一 ID
    - `store_id` int32

      页面所属店铺 ID
    - `title` string

      页面标题
    - `content` string

      页面的 HTML 内容
    - `status` int32

      页面状态（1 为激活）
    - `created_at` string

      页面创建时间
    - `updated_at` string

      最后更新时间
    - `url` string

      页面的 URL
    - `meta_title` string

      页面的 SEO 标题
    - `meta_keywords` string[]

      页面的 SEO 关键词
    - `meta_description` string

      页面的 SEO 描述
    - `independent_seo` boolean

      是否独立管理 SEO
    - `origin` string

      来源

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "page": {
      "id": 0,
      "store_id": 0,
      "title": "string",
      "content": "string",
      "status": 0,
      "created_at": "string",
      "updated_at": "string",
      "url": "string",
      "meta_title": "string",
      "meta_keywords": [
        "string"
      ],
      "meta_description": "string",
      "independent_seo": true,
      "origin": "string"
    }
  }
}
```
