Sorry, no results found for "".
Whether the website needs to be indexed by search engines or not
The upload id for the favicon
"123"
Specifies default global settings
Site name, used in social sharing
"My Awesome Website"
"Default meta title"
"Default meta description"
The id of the image
"123"
Determines how a Twitter link preview is shown
"summary_large_image"
Twitter summary card
Twitter summary card with large image
Title meta tag suffix
" - My Awesome Website"
URL of facebook page
"http://facebook.com/awesomewebsite"
Twitter account associated to website
"@awesomewebsite"
Site name
"My Awesome Website"
Available locales
["en"]
Site default timezone
"Europe/London"
Specifies whether all users of this site need to authenticate using two-factor authentication
Specifies whether you want IPs to be tracked in the Project usages section
If enabled, blocks schema changes of primary environment
Whether the Improved API Timezone Management opt-in product update is active or not
Whether the Improved API Hex Management opt-in product update is active or not
Whether the Improved GraphQL multi-locale fields opt-in product update is active or not
Whether the Improved GraphQL visibility control opt-in product update is active or not
Whether the Improved boolean fields opt-in product update is active or not
The default value for the draft mode option in all the environment's models
Whether the Improved validation at publishing opt-in product update is active or not
Whether the site has custom upload storage settings
Whether the Improved exposure of inline blocks in the Content Delivery API opt-in product update is active or not
Returns a resource object of type site
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const site = await client.site.update({});
// Check the 'Returned output' tab for the result ☝️ console.log(site);}
run();
{ id: "155", domain: "admin.my-awesome-website.com", favicon: "123", global_seo: {}, google_maps_api_token: "xxxxxxxxxxxxx", imgix_host: "www.datocms-assets.com", internal_domain: "my-website.admin.datocms.com", last_data_change_at: "2017-03-30T09:29:14.872Z", locales: ["en"], name: "My Awesome Website", no_index: true, require_2fa: false, theme: { type: "monochromatic", hue: 16, primary_color: { red: 128, green: 128, blue: 128, alpha: 128 }, light_color: { red: 128, green: 128, blue: 128, alpha: 128 }, accent_color: { red: 128, green: 128, blue: 128, alpha: 128 }, dark_color: { red: 128, green: 128, blue: 128, alpha: 128 }, logo: "123", }, timezone: "Europe/London", ip_tracking_enabled: true, force_use_of_sandbox_environments: true, assets_cdn_default_settings: { image: {}, video: {} }, meta: { created_at: "2020-04-21T07:57:11.124Z", improved_timezone_management: true, improved_hex_management: true, improved_gql_multilocale_fields: true, improved_gql_visibility_control: true, improved_boolean_fields: true, draft_mode_default: true, improved_validation_at_publishing: true, improved_exposure_of_inline_blocks_in_cda: true, }, item_types: [{ type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" }], owner: { type: "account", id: "312" },}