**版本：202201**

# 更新自定义页面

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

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

## 请求

**Path参数**

- `id` string (required)

  唯一标识。

**application/json**

**请求体 | 示例**

**请求体**

- `title` string

  The title of the page.
- `content` string

  Page content
- `url` string

  The url of the page.
- `meta_title` string

  The SEO title of the page.
- `meta_keyword` string

  The SEO keyword of the page.
- `meta_description` string

  The SEO description of the page.
- `independent_seo` boolean

  Decide whether the seo title is edited independently.

```json
{
  "title": "string",
  "content": "string",
  "url": "string",
  "meta_title": "string",
  "meta_keyword": "string",
  "meta_description": "string",
  "independent_seo": true
}
```

## 响应

**200**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `page` object

  - `id` integer

    **默认值：** `0`

    **示例：** `15978`
  - `title` string

    **示例：** `update`
  - `content` string

    **示例：**
  - `status` integer

    **默认值：** `0`

    **示例：** `1`
  - `created_at` string

    **示例：** `1714377411`
  - `updated_at` string

    **示例：** `1714378399`
  - `url` string

    **示例：** `/pages/update`
  - `meta_title` string

    **示例：** `update`
  - `meta_keyword` string

    **示例：**
  - `meta_description` string

    **示例：**
  - `independent_seo` boolean

    **默认值：** `true`

    **示例：** `false`

```json
{
  "page": {
    "id": 15978,
    "title": "update",
    "content": "",
    "status": 1,
    "created_at": "1714377411",
    "updated_at": "1714378399",
    "url": "/pages/update",
    "meta_title": "update",
    "meta_keyword": "",
    "meta_description": "",
    "independent_seo": false
  }
}
```

```json
{
  "page": {
    "id": 15978,
    "title": "update",
    "content": "",
    "status": 1,
    "created_at": "1714377411",
    "updated_at": "1714378399",
    "url": "/pages/update",
    "meta_title": "update",
    "meta_keyword": "",
    "meta_description": "",
    "independent_seo": false
  }
}
```
