Skip to main content

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​

FieldTypeDescription
IdintegerWebsite identifier. Page and site components use UserSiteId to refer to it.
GuidstringWebsite GUID.
CompanyIdintegerIdentifier of the company associated with the website.
IsDefaultbooleanDefault-website flag.
Subdomain, Domainstring or nullWebsite subdomain and domain.
DomainId, SubDomainIdinteger or nullAssociated domain and subdomain identifiers.
TemplateIdintegerIdentifier of the template used by the website.
TemplateVersionobject or nullTemplate version reference; see below.
SiteTypenumberWebsite type in this representation: 0 Company, 1 Agent, 2 Property.
SiteTypeDatastring or nullJSON-encoded type-specific data; its contents depend on the website type.
LogoText, LogoUri, Iconstring or nullWebsite logo text, logo URI, and icon URI.
LogoUriFileId, IconFileIdinteger or nullAssociated logo and icon file identifiers.
IsDirty, IsLiveboolean or nullWebsite dirty and live status flags. A null value is not the same as false.
Createddate-time stringCreation date in the serialized document. A default date value does not necessarily mean a creation date was supplied.
MenuParseName, FooterParseNamestring or nullMenu and footer parse-name fields on the website.
MenuData, FooterDatastring or nullMenu and footer data fields on the website.
Pagesarray or nullFlat collection of pages. Page relationships use ParentId.
SiteComponentsarray or nullCollection 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 Data values.
  • 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.