PATCH

Update Draft Post


Updates a draft post.

An empty or whitespace-only title clears the title. Fails with the POST_TITLE_REQUIRED application error when action is UPDATE_PUBLISH, UPDATE_SCHEDULE or UPDATE_PUBLICATION and the draft post has no title, or when the update clears the title of a scheduled draft post. With action set to UPDATE, clearing the title of a published post's draft succeeds: the published post keeps its title, and only publishing the untitled draft post fails.

Permission Scopes
Manage Blog
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/blog/v3/draft-posts/{draftPost.id}

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?