Sorry, no results found for "".
Returns a resource object of type site
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const site = await client.site.activateImprovedGqlMultilocaleFields();7 8 // Check the 'Returned output' tab for the result ☝️9 console.log(site);10}11 12run();
1{2 id: "155",3 domain: "admin.my-awesome-website.com",4 favicon: "123",5 global_seo: {},6 google_maps_api_token: "xxxxxxxxxxxxx",7 imgix_host: "www.datocms-assets.com",8 internal_domain: "my-website.admin.datocms.com",9 last_data_change_at: "2017-03-30T09:29:14.872Z",10 locales: ["en"],11 name: "My Awesome Website",12 no_index: true,13 require_2fa: false,14 theme: {15 type: "monochromatic",16 hue: 16,17 primary_color: { red: 128, green: 128, blue: 128, alpha: 128 },18 light_color: { red: 128, green: 128, blue: 128, alpha: 128 },19 accent_color: { red: 128, green: 128, blue: 128, alpha: 128 },20 dark_color: { red: 128, green: 128, blue: 128, alpha: 128 },21 logo: "123",22 },23 timezone: "Europe/London",24 ip_tracking_enabled: true,25 force_use_of_sandbox_environments: true,26 assets_cdn_default_settings: { image: {}, video: {} },27 meta: {28 created_at: "2020-04-21T07:57:11.124Z",29 improved_timezone_management: true,30 improved_hex_management: true,31 improved_gql_multilocale_fields: true,32 improved_gql_visibility_control: true,33 improved_boolean_fields: true,34 },35 item_types: [{ type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" }],36 owner: { type: "account", id: "312" },37}