**版本：202201**

# 发布主题

**PATCH** `/openapi/2022-01/themes/:theme_id/publish`

将指定主题发布为当前使用主题。

## 请求

**Path参数**

- `theme_id` string (required)

  主题 ID。

## 响应

**200**

200

**application/json**

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

**数据结构**

- `state` integer

  **默认值：** `0`

  **示例：** `0`
- `msg` string

  **示例：** `请求成功`
- `data` object

  - `theme` object

    - `id` string

      **示例：** `0af0d906-ab15-460e-99a5-a23e5c78b6e8`
    - `merchant_theme_id` string

      **示例：** `15536aed-7f62-4789-8688-21b2a0a7d4d1`
    - `theme_version_id` string

      **示例：** `44058`
    - `name` string

      **示例：** `Nova 2023`
    - `locale` string

      **示例：** `en-US`
    - `published` string

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

      **示例：** `1714462409`
    - `publish_time` string

      **示例：** `1714462409`
    - `theme_save_time`
    - `revoke_publish_id` string

      **示例：**

```json
{
  "state": 0,
  "msg": "请求成功",
  "data": {
    "theme": {
      "id": "0af0d906-ab15-460e-99a5-a23e5c78b6e8",
      "merchant_theme_id": "15536aed-7f62-4789-8688-21b2a0a7d4d1",
      "theme_version_id": "44058",
      "name": "Nova 2023",
      "locale": "en-US",
      "published": "1",
      "updated_at": "1714462409",
      "publish_time": "1714462409",
      "theme_save_time": {},
      "revoke_publish_id": ""
    }
  }
}
```

```json
{
  "state": 0,
  "msg": "请求成功",
  "data": {
    "theme": {
      "id": "0af0d906-ab15-460e-99a5-a23e5c78b6e8",
      "merchant_theme_id": "15536aed-7f62-4789-8688-21b2a0a7d4d1",
      "theme_version_id": "44058",
      "name": "Nova 2023",
      "locale": "en-US",
      "published": "1",
      "updated_at": "1714462409",
      "publish_time": "1714462409",
      "theme_save_time": null,
      "revoke_publish_id": ""
    }
  }
}
```
