Skip to content

xhs_update_draft

更新草稿内容。

参数

参数类型必填说明
draftIdstring草稿 ID
titlestring新标题
contentstring新内容
imagesstring[]新图片(替换原有图片)
tagsstring[]新标签

返回值

json
{
  "success": true,
  "draftId": "draft-uuid",
  "updatedFields": ["title", "content"]
}

示例

更新标题

xhs_update_draft({
  draftId: "draft-uuid",
  title: "新标题"
})

更新多个字段

xhs_update_draft({
  draftId: "draft-uuid",
  title: "新标题",
  content: "新内容...",
  tags: ["新标签"]
})

Released under the MIT License.