createSite

Function

Create a New Site Creates and protects the site item Uploads any assets/thumbnails passed in via options.assets array If not portal..,

  • register the site as an application, w/ needed redirect uris
  • register the domains with the Hub Domain Service

Parameters

Parameter Type Default Notes
model Required IModel

Site Model to create

options Required any

options hash. Key prop is assets

hubRequestOptions Required IHubRequestOptions

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in sites/src/create-site.ts:32