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.