**版本：202201**

# 上传Theme

**POST** `/openapi/2022-01/themes/upload`

## 响应

**200 | 500**

200

**application/json**

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

**数据结构**

- `task` object

  - `task` object

    - `id` string

      **示例：** `a772624d-db91-45d9-9e57-fdca9b4c50ed`
    - `store_id` integer

      **默认值：** `0`

      **示例：** `633130`
    - `type` string

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

      **默认值：** `0`

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

      **示例：** `2024-04-30 06:14:38`
    - `updated_at` string

      **示例：** `2024-04-30 06:14:38`
    - `info` string

      **示例：** `{"remote_url":"http://shoplaza-themes.oss-cn-shenzhen.aliyuncs.com/625936069942069724.zip","store_id":"633130","merchant_theme_id":"","override_theme_id":"","version":"","name":"Nova-2023-main","theme_source":"openapi-upload"}`
    - `message` string

      **示例：**
    - `manifest` string

      **示例：**

```json
{
  "task": {
    "task": {
      "id": "a772624d-db91-45d9-9e57-fdca9b4c50ed",
      "store_id": 633130,
      "type": "themes",
      "status": 0,
      "created_at": "2024-04-30 06:14:38",
      "updated_at": "2024-04-30 06:14:38",
      "info": "{\"remote_url\":\"http://shoplaza-themes.oss-cn-shenzhen.aliyuncs.com/625936069942069724.zip\",\"store_id\":\"633130\",\"merchant_theme_id\":\"\",\"override_theme_id\":\"\",\"version\":\"\",\"name\":\"Nova-2023-main\",\"theme_source\":\"openapi-upload\"}",
      "message": "",
      "manifest": ""
    }
  }
}
```

```json
{
    "task": {
        "task": {
            "id": "a772624d-db91-45d9-9e57-fdca9b4c50ed",
            "store_id": 633130,
            "type": "themes",
            "status": 0,
            "created_at": "2024-04-30 06:14:38",
            "updated_at": "2024-04-30 06:14:38",
            "info": "{\"remote_url\":\"http:\/\/shoplaza-themes.oss-cn-shenzhen.aliyuncs.com\/625936069942069724.zip\",\"store_id\":\"633130\",\"merchant_theme_id\":\"\",\"override_theme_id\":\"\",\"version\":\"\",\"name\":\"Nova-2023-main\",\"theme_source\":\"openapi-upload\"}",
            "message": "",
            "manifest": ""
        }
    }
}
```

500

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "file number error"
  ]
}
```

```json
{
  "errors": [
    "file number error"
  ]
}
```
