**版本：202601**

# 发布主题

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

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

## 请求

**Path参数**

- `theme_id` string (required)

  主题 ID

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `theme` object

    主题

    - `id` string

      主题 ID
    - `name` string

      主题名称
    - `merchant_theme_id` string

      商家主题 ID
    - `locale` string

      主题语言环境（如 en-US、zh-CN）
    - `preset` string

      主题风格
    - `published` string

      主题是否已发布（0 或 1）
    - `status` string

      主题的状态
    - `updated_at` string

      主题最后更新时间
    - `publish_time` string

      发布时间
    - `theme_save_time` string

      主题最后保存时间
    - `theme_version_id` string

      主题的版本 ID
    - `revoke_publish_id` string

      用于撤销发布的 ID（如适用）

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "theme": {
      "id": "string",
      "name": "string",
      "merchant_theme_id": "string",
      "locale": "string",
      "preset": "string",
      "published": "string",
      "status": "string",
      "updated_at": "string",
      "publish_time": "string",
      "theme_save_time": "string",
      "theme_version_id": "string",
      "revoke_publish_id": "string"
    }
  }
}
```
