saveDraft

Function

Given a site or page model, saves a draft

NOTE - replaces current draft if exists

Parameters

Parameter Type Default Notes
siteOrPageModel Required IModel
hubRequestOptions Required IHubRequestOptions

Returns

Promise<any>

Function defined in sites/src/drafts/save-draft.ts:19