Show examples in:
JavascriptHTTP
Content Management API > Site

Site

A site represents a specific DatoCMS administrative area

Object payload

idstring

ID of site

Example:"155"
typestring

Must be exactly "site".

attributes.domainstring, null

Administrative area custom domain

Example:"admin.my-awesome-website.com"
attributes.faviconstring, null

The upload id for the favicon

Example:"123"
attributes.global_seoobject, null

Specifies default global settings

site_namestring

Site name, used in social sharing

Example:"My Awesome Website"
fallback_seoobject
titlestring
Example:"Default meta title"
descriptionstring
Example:"Default meta description"
imagenull, string

The id of the image

Example:"123"
twitter_cardnull, enum

Determines how a Twitter link preview is shown

Example:"summary_large_image"
summary

Twitter summary card

summary_large_image

Twitter summary card with large image

title_suffixnull, string

Title meta tag suffix

Example:" - My Awesome Website"
facebook_page_urlnull, string

URL of facebook page

Example:"http://facebook.com/awesomewebsite"
twitter_accountnull, string

Twitter account associated to website

Example:"@awesomewebsite"
attributes.google_maps_api_tokenstring, null

Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns null for any other caller.

Example:"xxxxxxxxxxxxx"
attributes.imgix_hoststring, null

Imgix host

Example:"www.datocms-assets.com"
attributes.internal_domainstring, null

DatoCMS internal domain for the administrative area. Returns null if the credentials you are using cannot read the configuration of the project.

Example:"my-website.admin.datocms.com"
attributes.last_data_change_at

Specifies the last time when a change of data occurred

Type:null, date-time
Example:"2017-03-30T09:29:14.872Z"
attributes.locales

Available locales

Type:Array<string>
Example:["en"]
attributes.namestring

Site name

Example:"My Awesome Website"
attributes.no_indexboolean

Whether the website needs to be indexed by search engines or not

attributes.require_2faboolean, null

Specifies whether all users of this site need to authenticate using two-factor authentication. Returns null if the credentials you are using cannot read the configuration of the project.

attributes.themeobject

Specifies the theme to use in administrative area. The shape depends on the type (discriminated union): a monochromatic theme has a hue, a brand color and a navbar lightness, and a custom theme has a color palette.

attributes.timezonestring

Site default timezone, as an IANA time zone identifier

Example:"Europe/London"
attributes.ip_tracking_enabledboolean, null

Specifies whether you want IPs to be tracked in the Project usages section. Returns null if the credentials you are using cannot read the configuration of the project.

attributes.force_use_of_sandbox_environmentsboolean

If enabled, blocks schema changes of primary environment

attributes.assets_cdn_default_settingsobject

Allows setting default parameters for assets served through the CDN

imageobject

Allows setting default parameters for optimizing images served by the CDN

qinteger

Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.

Example:50
auto

The auto parameter helps automating a baseline level of optimization. Specify one or more settings

Type:Array<string>
Example:["compress", "format"]
csenum

Specifies the color space of the output image

Example:"srgb"
srgb

Uses the sRGB colorspace which is an internet standard. This is the default

adobergb1998

Refers to the Adobe RGB (1998) color space, which provides accurate color reproduction from screen to print

tinysrgb

Reduces the color space metadata but may cause a slight shift in color values

strip

Removes the colorspace for maximum size reduction. Note that colors will still be rendered, but a colorspace will not be specified

origin

Keeps the color space of the origin image. This is the default value unless auto=compress

videoobject

Allows setting default parameters for optimizing videos served by the CDN

disable_serving_raw_videosboolean

When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code

meta.created_atdate-time

Date of project creation

meta.improved_timezone_managementboolean

Whether the Improved API Timezone Management opt-in product update is active or not

meta.improved_hex_managementboolean

Whether the Improved API Hex Management opt-in product update is active or not

meta.improved_gql_multilocale_fieldsboolean

Whether the Improved GraphQL multi-locale fields opt-in product update is active or not

meta.improved_gql_visibility_controlboolean

Whether the Improved GraphQL visibility control opt-in product update is active or not

meta.improved_boolean_fieldsboolean

Whether the Improved boolean fields opt-in product update is active or not

meta.draft_mode_defaultboolean

The default value for the draft mode option in all the environment's models

meta.improved_validation_at_publishingboolean

Whether the Improved validation at publishing opt-in product update is active or not

meta.improved_exposure_of_inline_blocks_in_cdaboolean

Whether the Improved exposure of inline blocks in the Content Delivery API opt-in product update is active or not

meta.improved_items_listingboolean

Whether the Improved items listing opt-in product update is active or not

meta.milliseconds_in_datetimeboolean

Whether the Milliseconds in datetime opt-in product update is active or not

meta.non_localized_focal_pointsboolean

Whether the Non-localized focal points opt-in product update is active or not

meta.allow_custom_themeboolean

Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.

meta.custom_upload_storage_settingsboolean

Whether the site has custom upload storage settings

relationships.item_types.data
Type:Array&#x3C;<a href="/docs/content-management-api/resources/item_type">ResourceLinkage&#x3C;"item_type"></a>>
relationships.owner.data
Type:<a href="/docs/content-management-api/resources/account">ResourceLinkage&#x3C;"account"></a>, <a href="/docs/content-management-api/resources/organization">ResourceLinkage&#x3C;"organization"></a>
relationships.account.dataDeprecated

Please user the owner relationship instead

Type:null, <a href="/docs/content-management-api/resources/account">ResourceLinkage&#x3C;"account"></a>

Available endpoints