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<IDraft>
Property Type Notes
data any
item Partial<IItem>

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