版本:202601
更新主题文件
PATCH/openapi/2026-01/themes/:theme_id/doc
更新指定主题中特定文件的内容。
请求
Path参数
theme_id string必填
主题 ID
- application/json
- 请求体
- 示例
请求体必填
doc object必填
文档, 包含关于要更新的类型、位置和内容的详细信息
typestring必填
文件类型:layout、templates、sections、snippets、assets、config、locales 等
locationstring必填
位置信息
contentstring必填
内容
{
"doc": {
"type": "string",
"location": "string",
"content": "string"
}
}
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
object
{
"code": "string",
"message": "string",
"data": {}
}