Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Site

Activate improved GraphQL visibility control option

Returns

Returns a resource object of type site.

Examples

PUT https://site-api.datocms.com/site/activate-improved-gql-visibility-control HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/site/activate-improved-gql-visibility-control' \
-X PUT \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch(
"https://site-api.datocms.com/site/activate-improved-gql-visibility-control",
{
method: "PUT",
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
},
);
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "site",
"id": "155",
"relationships": {
"item_types": {
"data": [
{
"type": "item_type",
"id": "DxMaW10UQiCmZcuuA-IkkA"
}
]
},
"owner": {
"data": {
"type": "account",
"id": "312"
}
}
},
"attributes": {
"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
}
}
}