Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Site

Activate improved Boolean fields option

Returns

Returns a resource object of type site.

Examples

1
PUT https://site-api.datocms.com/site/activate-improved-boolean-fields HTTP/1.1
2
Authorization: Bearer YOUR-API-TOKEN
3
Accept: application/json
4
X-Api-Version: 3
Terminal window
1
curl -g 'https://site-api.datocms.com/site/activate-improved-boolean-fields' \
2
-X PUT \
3
-H "Authorization: Bearer YOUR-API-TOKEN" \
4
-H "Accept: application/json" \
5
-H "X-Api-Version: 3"
1
await fetch(
2
"https://site-api.datocms.com/site/activate-improved-boolean-fields",
3
{
4
method: "PUT",
5
headers: {
6
Authorization: "Bearer YOUR-API-TOKEN",
7
Accept: "application/json",
8
"X-Api-Version": "3",
9
},
10
},
11
);
1
HTTP/1.1 200 OK
2
Content-Type: application/json
3
Cache-Control: cache-control: max-age=0, private, must-revalidate
4
X-RateLimit-Limit: 30
5
X-RateLimit-Remaining: 28
6
7
{
8
"data": {
9
"type": "site",
10
"id": "155",
11
"relationships": {
12
"item_types": {
13
"data": [
14
{
15
"type": "item_type",
16
"id": "DxMaW10UQiCmZcuuA-IkkA"
17
}
18
]
19
},
20
"owner": {
21
"data": {
22
"type": "account",
23
"id": "312"
24
}
25
}
26
},
27
"attributes": {
28
"domain": "admin.my-awesome-website.com",
29
"favicon": "123",
30
"global_seo": {},
31
"google_maps_api_token": "xxxxxxxxxxxxx",
32
"imgix_host": "www.datocms-assets.com",
33
"internal_domain": "my-website.admin.datocms.com",
34
"last_data_change_at": "2017-03-30T09:29:14.872Z",
35
"locales": [
36
"en"
37
],
38
"name": "My Awesome Website",
39
"no_index": true,
40
"require_2fa": false,
41
"theme": {
42
"type": "monochromatic",
43
"hue": 16,
44
"primary_color": {
45
"red": 128,
46
"green": 128,
47
"blue": 128,
48
"alpha": 128
49
},
50
"light_color": {
51
"red": 128,
52
"green": 128,
53
"blue": 128,
54
"alpha": 128
55
},
56
"accent_color": {
57
"red": 128,
58
"green": 128,
59
"blue": 128,
60
"alpha": 128
61
},
62
"dark_color": {
63
"red": 128,
64
"green": 128,
65
"blue": 128,
66
"alpha": 128
67
},
68
"logo": "123"
69
},
70
"timezone": "Europe/London",
71
"ip_tracking_enabled": true,
72
"force_use_of_sandbox_environments": true,
73
"assets_cdn_default_settings": {
74
"image": {},
75
"video": {}
76
}
77
},
78
"meta": {
79
"created_at": "2020-04-21T07:57:11.124Z",
80
"improved_timezone_management": true,
81
"improved_hex_management": true,
82
"improved_gql_multilocale_fields": true,
83
"improved_gql_visibility_control": true,
84
"improved_boolean_fields": true
85
}
86
}
87
}