Skip to content

xhs_update_draft

Update draft content.

Parameters

ParameterTypeRequiredDescription
draftIdstringYesDraft ID
titlestringNoNew title
contentstringNoNew content
imagesstring[]NoNew images (replaces existing)
tagsstring[]NoNew tags

Response

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

Examples

Update title

xhs_update_draft({
  draftId: "draft-uuid",
  title: "New Title"
})

Update multiple fields

xhs_update_draft({
  draftId: "draft-uuid",
  title: "New Title",
  content: "New content...",
  tags: ["new-tag"]
})

Released under the MIT License.