Create Site

POST

Create a site. This endpoint requires an Enterprise workspace.

Required scope | workspace:write

Path parameters

workspace_idstringRequired

Unique identifier for a Workspace

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

idstring

Unique identifier for the Site

workspaceIdstringOptional

Unique identifier for the Workspace

createdOndatetimeOptional

Date the Site was created

displayNamestringOptional

Name given to Site

shortNamestringOptional

Slugified version of name

lastPublisheddatetimeOptional

Date the Site was last published

lastUpdateddatetimeOptional

Date the Site was last updated

previewUrlstringOptional

URL of a generated image for the given Site

timeZonestringOptional

Site timezone set under Site Settings

parentFolderIdstringOptional

The ID of the parent folder the Site exists in

customDomainslist of objectsOptional
localesobjectOptional
dataCollectionEnabledbooleanOptional

Indicates if data collection is enabled for the site.

dataCollectionTypeenumOptional
Allowed values: alwaysoptOutdisabled

The type of data collection enabled for the site.

Errors