**Version: 202201**

# Publish Theme

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

Publish a specific theme using its unique identifier.

## Request

**Path Parameters**

- `theme_id` string (required)

  Theme's ID

## Responses

**200**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `state` integer

  **Default value:** `0`

  **Example:** `0`
- `msg` string

  **Example:** `请求成功`
- `data` object

  - `theme` object

    - `id` string

      **Example:** `0af0d906-ab15-460e-99a5-a23e5c78b6e8`
    - `merchant_theme_id` string

      **Example:** `15536aed-7f62-4789-8688-21b2a0a7d4d1`
    - `theme_version_id` string

      **Example:** `44058`
    - `name` string

      **Example:** `Nova 2023`
    - `locale` string

      **Example:** `en-US`
    - `published` string

      **Example:** `1`
    - `updated_at` string

      **Example:** `1714462409`
    - `publish_time` string

      **Example:** `1714462409`
    - `theme_save_time`
    - `revoke_publish_id` string

      **Example:**

```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": ""
    }
  }
}
```
