Creates a draft post.
The draft post's memberId
is required for third-party apps.
function createDraftPost(
draftPost: DraftPost,
options: CreateDraftPostOptions,
): Promise<CreateDraftPostResponse>;
Draft post to create.
Options for creating a draft post.
import { draftPosts } from "@wix/blog";
async function createDraftPost(draftPost, options) {
const response = await draftPosts.createDraftPost(draftPost, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.