**版本：202701**

# 更新博客

**PUT** `/openapi/2027-01/blogs/:id`

通过博客 ID 更新现有博客的详细信息。

## 请求

**Path参数**

- `id` string (required)

  博客 ID

**application/json**

**请求体 | 示例**

**请求体 (required)**

- `blog` object (required)

  博客

  - `title` string

    博客标题，标题为可选项，最多 100 个字符

    **可选值：** `<= 100 个字符`
  - `handle` string

    SEO链接
  - `seo_title` string

    SEO 标题
  - `seo_description` string

    SEO 描述
  - `seo_keywords` string[]

    SEO 关键词

```json
{
  "blog": {
    "title": "string",
    "handle": "string",
    "seo_title": "string",
    "seo_description": "string",
    "seo_keywords": [
      "string"
    ]
  }
}
```

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `blog` object

    博客

    - `id` string

      博客的唯一标识
    - `title` string

      博客标题
    - `handle` string

      SEO链接
    - `seo_title` string

      SEO 标题
    - `seo_description` string

      SEO 描述
    - `seo_keywords` string[]

      SEO 关键词
    - `created_at` string

      博客创建时间
    - `updated_at` string

      博客更新时间

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "blog": {
      "id": "string",
      "title": "string",
      "handle": "string",
      "seo_title": "string",
      "seo_description": "string",
      "seo_keywords": [
        "string"
      ],
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
