版本:202506
发布主题
PATCH/openapi/2025-06/themes/:theme_id/publish
将指定主题发布为当前使用主题。
请求
Path参数
theme_id string必填
主题 ID
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
theme object
主题
idstring
主题 ID
namestring
主题名称
merchant_theme_idstring
商家主题 ID
localestring
主题语言环境(如 en-US、zh-CN)
presetstring
主题风格
publishedstring
主题是否已发布(0 或 1)
statusstring
主题的状态
updated_atstring
主题最后更新时间
publish_timestring
发布时间
theme_save_timestring
主题最后保存时间
theme_version_idstring
主题的版本 ID
revoke_publish_idstring
用于撤销发布的 ID(如适用)
{
"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"
}
}
}