getDraftPost( )


Gets a draft post by the provided ID.

Uses the provided draftPostId to retrieve a draft post.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Blog
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
draftPostIdstringRequired

Draft post ID.


optionsGetDraftPostOptions

Options for getting a draft post.

Returns
Return Type:Promise<GetDraftPostResponse>
Was this helpful?
Yes
No