Create Site

Create a site.

Enterprise Only
This endpoint requires an Enterprise workspace.

Required scope | workspace:write

Path parameters

workspace_idstringRequiredformat: "objectid"
Unique identifier for a Workspace

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
The name of the site
templateNamestringOptional
The workspace or marketplace template to use
parentFolderIdstringOptional

MegaDodo Publications - Potential Book Ideas

Response

Request was successful
idstringformat: "objectid"
Unique identifier for the Site
workspaceIdstringformat: "objectid"
Unique identifier for the Workspace
createdOnstringformat: "date-time"
Date the Site was created
displayNamestring
Name given to Site
shortNamestring
Slugified version of name
lastPublishedstringformat: "date-time"
Date the Site was last published
lastUpdatedstringformat: "date-time"
Date the Site was last updated
previewUrlstringformat: "uri"
URL of a generated image for the given Site
timeZonestring
Site timezone set under Site Settings
dataCollectionEnabledboolean
Indicates if data collection is enabled for the site.
dataCollectionTypeenum
The type of data collection enabled for the site.
Allowed values:
parentFolderIdstring or nullformat: "objectid"
The ID of the parent folder the Site exists in
customDomainslist of objects or null
localesobject or null

Errors