版本:202506
删除主题文件
DELETE/openapi/2025-06/themes/:theme_id/doc
根据主题 ID、文件类型和文件路径删除指定主题文件。
请求
Path参数
theme_id string必填
主题 ID
- application/json
- 请求体
- 示例
请求体必填
typestring
文件类型(layout, templates, sections, snippets, assets, config, locales)。默认assets
默认值:
assetslocationstring
文件在主题中的位置。默认为a.js
默认值:
a.js{
"type": "assets",
"location": "a.js"
}
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
object
{
"code": "string",
"message": "string",
"data": {}
}