Website document structure
A website document describes a UserSite: its identity, template, pages, and site-wide components. This reference describes the document structure, not an API or MCP operation. It does not imply that the document can be submitted to an existing endpoint.
This format is distinct from a template website item, which defines a starting structure for a website. In this document, pages and components belong to an individual website.
Example
The IDs and values below are illustrative. This is a shortened example, not a complete payload or a statement of required fields.
{
"Id": 100,
"CompanyId": 20,
"TemplateId": 300,
"TemplateVersion": {
"Id": 400,
"HeadId": 50,
"TemplateId": 300,
"Details": null,
"Major": 1,
"Minor": 2,
"Revision": 0
},
"SiteType": 0,
"SiteTypeData": null,
"Pages": [
{
"Id": 101,
"UserSiteId": 100,
"Name": "Home",
"ParentId": 0,
"IsHome": true,
"Order": 0,
"Content": []
}
],
"SiteComponents": []
}
Fields
| Field | Type | Description |
|---|---|---|
Id | integer | Website identifier. Page and site components use UserSiteId to refer to it. |
Guid | string | Website GUID. |
CompanyId | integer | Identifier of the company associated with the website. |
IsDefault | boolean | Default-website flag. |
Subdomain, Domain | string or null | Website subdomain and domain. |
DomainId, SubDomainId | integer or null | Associated domain and subdomain identifiers. |
TemplateId | integer | Identifier of the template used by the website. |
TemplateVersion | object or null | Template version reference; see below. |
SiteType | number | Website type in this representation: 0 Company, 1 Agent, 2 Property. |
SiteTypeData | string or null | JSON-encoded type-specific data; its contents depend on the website type. |
LogoText, LogoUri, Icon | string or null | Website logo text, logo URI, and icon URI. |
LogoUriFileId, IconFileId | integer or null | Associated logo and icon file identifiers. |
IsDirty, IsLive | boolean or null | Website dirty and live status flags. A null value is not the same as false. |
Created | date-time string | Creation date in the serialized document. A default date value does not necessarily mean a creation date was supplied. |
MenuParseName, FooterParseName | string or null | Menu and footer parse-name fields on the website. |
MenuData, FooterData | string or null | Menu and footer data fields on the website. |
Pages | array or null | Flat collection of pages. Page relationships use ParentId. |
SiteComponents | array or null | Collection of site-wide components. |
MenuParseName, MenuData, FooterParseName, and FooterData are separate fields from the entries in SiteComponents. Do not assume one is populated whenever the other is present.
Template version
TemplateVersion, when present, contains Id (version ID), HeadId (version-head ID), TemplateId, Details (string or null), and integer Major, Minor, and Revision fields. IDs identify existing records; the example values above are not reusable identifiers.
Reading the document
- Read Pages for hierarchy and navigation fields.
- Read Page content for modules and their JSON-encoded
Datavalues. - Read Site components for shared menu and footer components.
- Properties can be null in an observed document. These descriptions do not establish which fields a future API will require or accept for writing.