Create a new site
Use this endpoint to create a new site.
The new site can either be an initial draft site which has no associated ready version or it can be a draft of an existing ready site.
The body of the request should contain the metadata for the new site. This metadata should include the site 'name', 'linkedDocId' is optional, 'id' is optional. If 'linkedDocId' is provided, then the site created will be a draft of the ready site specified in 'linkedDocId'. If 'linkedDocId' is not provided, then the site created will be an initial draft site i.e no ready version exists yet. If ID is provided, and a draft of the default site is being created it must start with default. 'linkedDocId' must be set to 'default'. <br />User roles: admin, manager, editor
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
If ‘copySourceSiteId’ is specified when creating a site then a new site is created and all the pages from the source site are copied into the new site.
Request body
Response
succcess.
Changes
No recorded changes to this operation across all 1 revision of this API.