hostinger-api-mcp 3.17.4 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +36 -137
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/audit-hosting/SKILL.md +1 -1
- package/skills/connect-domain/SKILL.md +1 -1
- package/skills/deploy-to-hosting/SKILL.md +1 -1
- package/skills/troubleshoot-website/SKILL.md +5 -5
- package/src/core/runtime.js +152 -2
- package/src/core/runtime.ts +152 -2
- package/src/core/skills.js +12 -12
- package/src/core/skills.ts +12 -12
- package/src/core/tools/all.js +182 -12
- package/src/core/tools/all.ts +182 -12
- package/src/core/tools/hosting.js +145 -10
- package/src/core/tools/hosting.ts +145 -10
- package/src/core/tools/reach.js +37 -2
- package/src/core/tools/reach.ts +37 -2
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +92 -4
package/src/core/tools/all.ts
CHANGED
|
@@ -189,6 +189,131 @@ const tools: OpenApiTool[] = [
|
|
|
189
189
|
"handlerMethod": "handleHostingGetDeployment",
|
|
190
190
|
"group": "hosting"
|
|
191
191
|
},
|
|
192
|
+
{
|
|
193
|
+
"name": "hosting_websites_get-settings",
|
|
194
|
+
"title": "Get website SSL, CDN and cache settings",
|
|
195
|
+
"annotations": {
|
|
196
|
+
"title": "Get website SSL, CDN and cache settings",
|
|
197
|
+
"readOnlyHint": true,
|
|
198
|
+
"destructiveHint": false
|
|
199
|
+
},
|
|
200
|
+
"topic": "hosting",
|
|
201
|
+
"description": "Read a website's SSL certificate, HTTPS redirect, CDN and server cache settings in one call. ssl is the SSL status as hosting_ssl_status returns it: the certificate status (active, installing, waiting_for_retry, failed, expired or not_installed) and provider, whether it is a lifetime certificate, whether HTTP is redirected to HTTPS, when it expires and the last installation error. cdn.is_enabled says whether the Hostinger CDN serves the website. cache.is_enabled says whether server-side caching is on, and cache.is_cacheless_mode_enabled whether development (cacheless) mode bypasses it. Use it before hosting_websites_update-settings, and to follow an SSL installation started by hosting_ssl_install: poll until ssl.status is active or failed, with growing pauses. A section that cannot be read comes back as { error } and the others are still returned; cache is null with a cacheNote when cache status is not available. To install or remove a certificate use hosting_ssl_install or hosting_ssl_uninstall. Works for Shared and Cloud hosting websites.",
|
|
202
|
+
"method": "",
|
|
203
|
+
"path": "",
|
|
204
|
+
"inputSchema": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"domain": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"domain"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"security": [],
|
|
217
|
+
"custom": true,
|
|
218
|
+
"replacesHidden": true,
|
|
219
|
+
"templateFile": "get-website-settings.template.js",
|
|
220
|
+
"templateFileTS": "get-website-settings.template.ts",
|
|
221
|
+
"handlerMethod": "handleHostingWebsitesGetSettings",
|
|
222
|
+
"group": "hosting"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "hosting_websites_update-settings",
|
|
226
|
+
"title": "Update website HTTPS redirect, CDN and cache settings",
|
|
227
|
+
"annotations": {
|
|
228
|
+
"title": "Update website HTTPS redirect, CDN and cache settings",
|
|
229
|
+
"readOnlyHint": false,
|
|
230
|
+
"destructiveHint": true
|
|
231
|
+
},
|
|
232
|
+
"topic": "hosting",
|
|
233
|
+
"description": "Change a website's HTTPS redirect, CDN and server cache settings in one call. Pass only the settings to change, at least one. Settings are applied in the order cache, cachelessMode, cdn, httpsRedirect, and the call stops at the first failure. applied lists the settings that were changed. When a setting fails, the call returns an error whose text is the same JSON: failed names the setting and why, and skipped lists the ones not attempted; a multi-execute batch stops there too. Turning httpsRedirect on needs an active SSL certificate: the call checks it first and changes nothing when there is none. Install one with hosting_ssl_install and wait until hosting_websites_get-settings shows ssl.status active. cachelessMode is applied in the background and takes effect within a few minutes; enabling the CDN changes DNS records, so visitors are served through it after a few minutes of propagation. Certificates are not installed or removed here: use hosting_ssl_install and hosting_ssl_uninstall. Read the current values with hosting_websites_get-settings. Works for Shared and Cloud hosting websites.",
|
|
234
|
+
"method": "",
|
|
235
|
+
"path": "",
|
|
236
|
+
"inputSchema": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"domain": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
242
|
+
},
|
|
243
|
+
"cache": {
|
|
244
|
+
"type": "boolean",
|
|
245
|
+
"description": "Turn server-side caching on (true) or off (false). Keep it on for production websites; to bypass it while developing, use cachelessMode instead."
|
|
246
|
+
},
|
|
247
|
+
"cachelessMode": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"description": "Turn development (cacheless) mode on (true) or off (false). While it is on nothing is cached, so changes show at once; turn it off when done. Applied in the background within a few minutes."
|
|
250
|
+
},
|
|
251
|
+
"cdn": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"description": "Turn the Hostinger CDN on (true) or off (false). Changes DNS records; propagation takes a few minutes. Cannot be turned off for platform-managed domains (*.hostingersite.com)."
|
|
254
|
+
},
|
|
255
|
+
"httpsRedirect": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"description": "Redirect HTTP to HTTPS (true) or stop redirecting (false). Turning it on needs an active SSL certificate (see hosting_ssl_install)."
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"domain"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"security": [],
|
|
265
|
+
"custom": true,
|
|
266
|
+
"replacesHidden": true,
|
|
267
|
+
"templateFile": "update-website-settings.template.js",
|
|
268
|
+
"templateFileTS": "update-website-settings.template.ts",
|
|
269
|
+
"handlerMethod": "handleHostingWebsitesUpdateSettings",
|
|
270
|
+
"group": "hosting"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "hosting_cache_clear",
|
|
274
|
+
"title": "Clear website cache",
|
|
275
|
+
"annotations": {
|
|
276
|
+
"title": "Clear website cache",
|
|
277
|
+
"readOnlyHint": false,
|
|
278
|
+
"destructiveHint": true
|
|
279
|
+
},
|
|
280
|
+
"topic": "hosting",
|
|
281
|
+
"description": "Clear a website's server cache (the hosting server's page cache) and Hostinger CDN cache, so updated content shows at once. By default (scope: all) it clears the server cache and, when the CDN is on, purges the CDN too. scope: cdn purges only the CDN edge cache and leaves the server cache alone; that fails with 422 when the CDN is off. For a WordPress site installed in a subdirectory, pass directory to clear that installation's cache (only with scope all). This does not purge the WordPress LiteSpeed Cache plugin: that is a separate WordPress operation (wordpress_litespeed-cache_purge-lite-speed). To turn caching or the CDN on or off use hosting_websites_update-settings. Works for Shared and Cloud hosting websites.",
|
|
282
|
+
"method": "",
|
|
283
|
+
"path": "",
|
|
284
|
+
"inputSchema": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"properties": {
|
|
287
|
+
"domain": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
290
|
+
},
|
|
291
|
+
"scope": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"enum": [
|
|
294
|
+
"all",
|
|
295
|
+
"cdn"
|
|
296
|
+
],
|
|
297
|
+
"description": "What to clear: all (default) clears the server cache and, when the CDN is on, the CDN too; cdn purges only the CDN edge cache and fails when the CDN is off.",
|
|
298
|
+
"default": "all"
|
|
299
|
+
},
|
|
300
|
+
"directory": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "WordPress installed in a subdirectory: its directory relative to the website root (e.g., blog), to clear that installation's cache. Only when scope is all; default the website root."
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"required": [
|
|
306
|
+
"domain"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
"security": [],
|
|
310
|
+
"custom": true,
|
|
311
|
+
"replacesHidden": true,
|
|
312
|
+
"templateFile": "clear-cache.template.js",
|
|
313
|
+
"templateFileTS": "clear-cache.template.ts",
|
|
314
|
+
"handlerMethod": "handleHostingCacheClear",
|
|
315
|
+
"group": "hosting"
|
|
316
|
+
},
|
|
192
317
|
{
|
|
193
318
|
"name": "agency-hosting_deploy-node-static-website",
|
|
194
319
|
"title": "Deploy node-static website",
|
|
@@ -6293,7 +6418,8 @@ const tools: OpenApiTool[] = [
|
|
|
6293
6418
|
"apiToken": []
|
|
6294
6419
|
}
|
|
6295
6420
|
],
|
|
6296
|
-
"group": "hosting"
|
|
6421
|
+
"group": "hosting",
|
|
6422
|
+
"hidden": true
|
|
6297
6423
|
},
|
|
6298
6424
|
{
|
|
6299
6425
|
"name": "hosting_cache_status",
|
|
@@ -6328,7 +6454,8 @@ const tools: OpenApiTool[] = [
|
|
|
6328
6454
|
"apiToken": []
|
|
6329
6455
|
}
|
|
6330
6456
|
],
|
|
6331
|
-
"group": "hosting"
|
|
6457
|
+
"group": "hosting",
|
|
6458
|
+
"hidden": true
|
|
6332
6459
|
},
|
|
6333
6460
|
{
|
|
6334
6461
|
"name": "hosting_cache_toggle-cacheless",
|
|
@@ -6369,7 +6496,8 @@ const tools: OpenApiTool[] = [
|
|
|
6369
6496
|
"apiToken": []
|
|
6370
6497
|
}
|
|
6371
6498
|
],
|
|
6372
|
-
"group": "hosting"
|
|
6499
|
+
"group": "hosting",
|
|
6500
|
+
"hidden": true
|
|
6373
6501
|
},
|
|
6374
6502
|
{
|
|
6375
6503
|
"name": "hosting_cache_toggle-website",
|
|
@@ -6410,7 +6538,8 @@ const tools: OpenApiTool[] = [
|
|
|
6410
6538
|
"apiToken": []
|
|
6411
6539
|
}
|
|
6412
6540
|
],
|
|
6413
|
-
"group": "hosting"
|
|
6541
|
+
"group": "hosting",
|
|
6542
|
+
"hidden": true
|
|
6414
6543
|
},
|
|
6415
6544
|
{
|
|
6416
6545
|
"name": "hosting_cdn_disable",
|
|
@@ -6445,7 +6574,8 @@ const tools: OpenApiTool[] = [
|
|
|
6445
6574
|
"apiToken": []
|
|
6446
6575
|
}
|
|
6447
6576
|
],
|
|
6448
|
-
"group": "hosting"
|
|
6577
|
+
"group": "hosting",
|
|
6578
|
+
"hidden": true
|
|
6449
6579
|
},
|
|
6450
6580
|
{
|
|
6451
6581
|
"name": "hosting_cdn_enable",
|
|
@@ -6480,7 +6610,8 @@ const tools: OpenApiTool[] = [
|
|
|
6480
6610
|
"apiToken": []
|
|
6481
6611
|
}
|
|
6482
6612
|
],
|
|
6483
|
-
"group": "hosting"
|
|
6613
|
+
"group": "hosting",
|
|
6614
|
+
"hidden": true
|
|
6484
6615
|
},
|
|
6485
6616
|
{
|
|
6486
6617
|
"name": "hosting_cdn_purge-cache",
|
|
@@ -6516,7 +6647,8 @@ const tools: OpenApiTool[] = [
|
|
|
6516
6647
|
"apiToken": []
|
|
6517
6648
|
}
|
|
6518
6649
|
],
|
|
6519
|
-
"group": "hosting"
|
|
6650
|
+
"group": "hosting",
|
|
6651
|
+
"hidden": true
|
|
6520
6652
|
},
|
|
6521
6653
|
{
|
|
6522
6654
|
"name": "hosting_cdn_status",
|
|
@@ -6551,7 +6683,8 @@ const tools: OpenApiTool[] = [
|
|
|
6551
6683
|
"apiToken": []
|
|
6552
6684
|
}
|
|
6553
6685
|
],
|
|
6554
|
-
"group": "hosting"
|
|
6686
|
+
"group": "hosting",
|
|
6687
|
+
"hidden": true
|
|
6555
6688
|
},
|
|
6556
6689
|
{
|
|
6557
6690
|
"name": "hosting_cron-jobs_list",
|
|
@@ -9648,7 +9781,8 @@ const tools: OpenApiTool[] = [
|
|
|
9648
9781
|
"apiToken": []
|
|
9649
9782
|
}
|
|
9650
9783
|
],
|
|
9651
|
-
"group": "hosting"
|
|
9784
|
+
"group": "hosting",
|
|
9785
|
+
"hidden": true
|
|
9652
9786
|
},
|
|
9653
9787
|
{
|
|
9654
9788
|
"name": "hosting_ssl_toggle-https-redirect",
|
|
@@ -9689,7 +9823,8 @@ const tools: OpenApiTool[] = [
|
|
|
9689
9823
|
"apiToken": []
|
|
9690
9824
|
}
|
|
9691
9825
|
],
|
|
9692
|
-
"group": "hosting"
|
|
9826
|
+
"group": "hosting",
|
|
9827
|
+
"hidden": true
|
|
9693
9828
|
},
|
|
9694
9829
|
{
|
|
9695
9830
|
"name": "hosting_ssl_uninstall",
|
|
@@ -14440,6 +14575,41 @@ const tools: OpenApiTool[] = [
|
|
|
14440
14575
|
],
|
|
14441
14576
|
"group": "reach"
|
|
14442
14577
|
},
|
|
14578
|
+
{
|
|
14579
|
+
"name": "reach_integrations_connect-ecommerce-store",
|
|
14580
|
+
"title": "Connect Ecommerce store",
|
|
14581
|
+
"annotations": {
|
|
14582
|
+
"title": "Connect Ecommerce store",
|
|
14583
|
+
"readOnlyHint": false,
|
|
14584
|
+
"destructiveHint": false
|
|
14585
|
+
},
|
|
14586
|
+
"description": "Connect one of the customer's eCommerce stores to the profile, so Reach receives its\ncustomers and orders.\n\nTake `store_id` from the list eCommerce stores endpoint. Fails with not found\n(`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer's own stores, also\nwhen the eCommerce service cannot be reached. Fails with a conflict\n(`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this\nprofile already has a store - to move a store to another plan, disconnect it from the\nprofile that holds it first.",
|
|
14587
|
+
"method": "POST",
|
|
14588
|
+
"path": "/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}",
|
|
14589
|
+
"inputSchema": {
|
|
14590
|
+
"type": "object",
|
|
14591
|
+
"properties": {
|
|
14592
|
+
"profileUuid": {
|
|
14593
|
+
"type": "string",
|
|
14594
|
+
"description": "Profile uuid parameter"
|
|
14595
|
+
},
|
|
14596
|
+
"storeId": {
|
|
14597
|
+
"type": "string",
|
|
14598
|
+
"description": "Hostinger eCommerce store ID, as returned by the eCommerce stores list"
|
|
14599
|
+
}
|
|
14600
|
+
},
|
|
14601
|
+
"required": [
|
|
14602
|
+
"profileUuid",
|
|
14603
|
+
"storeId"
|
|
14604
|
+
]
|
|
14605
|
+
},
|
|
14606
|
+
"security": [
|
|
14607
|
+
{
|
|
14608
|
+
"apiToken": []
|
|
14609
|
+
}
|
|
14610
|
+
],
|
|
14611
|
+
"group": "reach"
|
|
14612
|
+
},
|
|
14443
14613
|
{
|
|
14444
14614
|
"name": "reach_integrations_disconnect-ecommerce-store",
|
|
14445
14615
|
"title": "Disconnect Ecommerce store",
|
|
@@ -14449,7 +14619,7 @@ const tools: OpenApiTool[] = [
|
|
|
14449
14619
|
"destructiveHint": true,
|
|
14450
14620
|
"idempotentHint": true
|
|
14451
14621
|
},
|
|
14452
|
-
"description": "Disconnect an eCommerce store from the profile.\n\nReach stops receiving the store's customers and orders, and its products and coupons are\nremoved from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce\nstores endpoint; for a store that is `connected_to_other_profile`, call this with that\nprofile. Also succeeds when the store is not connected to this profile, so success is not\nproof that anything was disconnected. Confirm the store and the plan with the customer
|
|
14622
|
+
"description": "Disconnect an eCommerce store from the profile.\n\nReach stops receiving the store's customers and orders, and its products and coupons are\nremoved from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce\nstores endpoint; for a store that is `connected_to_other_profile`, call this with that\nprofile. Also succeeds when the store is not connected to this profile, so success is not\nproof that anything was disconnected. To move the store to another plan, connect it to the\nnew profile afterwards. Confirm the store and the plan with the customer before calling.",
|
|
14453
14623
|
"method": "DELETE",
|
|
14454
14624
|
"path": "/api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId}",
|
|
14455
14625
|
"inputSchema": {
|
|
@@ -14484,7 +14654,7 @@ const tools: OpenApiTool[] = [
|
|
|
14484
14654
|
"readOnlyHint": true,
|
|
14485
14655
|
"destructiveHint": false
|
|
14486
14656
|
},
|
|
14487
|
-
"description": "Get all of the customer's Hostinger eCommerce stores, each with its `store_id` and\n`connection_status` for the profile in the path.\n\nA store is connected to at most one profile. `connected_to_other_profile` does not name that\nprofile - call this for each profile to find it. The list is empty, not an error, when the\neCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce
|
|
14657
|
+
"description": "Get all of the customer's Hostinger eCommerce stores, each with its `store_id` and\n`connection_status` for the profile in the path.\n\nA store is connected to at most one profile. `connected_to_other_profile` does not name that\nprofile - call this for each profile to find it. The list is empty, not an error, when the\neCommerce service cannot be reached. Pass `store_id` to the connect or disconnect eCommerce\nstore endpoint.",
|
|
14488
14658
|
"method": "GET",
|
|
14489
14659
|
"path": "/api/reach/v1/profiles/{profileUuid}/ecommerce/stores",
|
|
14490
14660
|
"inputSchema": {
|
|
@@ -173,6 +173,131 @@ export default [
|
|
|
173
173
|
"handlerMethod": "handleHostingGetDeployment",
|
|
174
174
|
"group": "hosting"
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
"name": "hosting_websites_get-settings",
|
|
178
|
+
"title": "Get website SSL, CDN and cache settings",
|
|
179
|
+
"annotations": {
|
|
180
|
+
"title": "Get website SSL, CDN and cache settings",
|
|
181
|
+
"readOnlyHint": true,
|
|
182
|
+
"destructiveHint": false
|
|
183
|
+
},
|
|
184
|
+
"topic": "hosting",
|
|
185
|
+
"description": "Read a website's SSL certificate, HTTPS redirect, CDN and server cache settings in one call. ssl is the SSL status as hosting_ssl_status returns it: the certificate status (active, installing, waiting_for_retry, failed, expired or not_installed) and provider, whether it is a lifetime certificate, whether HTTP is redirected to HTTPS, when it expires and the last installation error. cdn.is_enabled says whether the Hostinger CDN serves the website. cache.is_enabled says whether server-side caching is on, and cache.is_cacheless_mode_enabled whether development (cacheless) mode bypasses it. Use it before hosting_websites_update-settings, and to follow an SSL installation started by hosting_ssl_install: poll until ssl.status is active or failed, with growing pauses. A section that cannot be read comes back as { error } and the others are still returned; cache is null with a cacheNote when cache status is not available. To install or remove a certificate use hosting_ssl_install or hosting_ssl_uninstall. Works for Shared and Cloud hosting websites.",
|
|
186
|
+
"method": "",
|
|
187
|
+
"path": "",
|
|
188
|
+
"inputSchema": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"properties": {
|
|
191
|
+
"domain": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"domain"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"security": [],
|
|
201
|
+
"custom": true,
|
|
202
|
+
"replacesHidden": true,
|
|
203
|
+
"templateFile": "get-website-settings.template.js",
|
|
204
|
+
"templateFileTS": "get-website-settings.template.ts",
|
|
205
|
+
"handlerMethod": "handleHostingWebsitesGetSettings",
|
|
206
|
+
"group": "hosting"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "hosting_websites_update-settings",
|
|
210
|
+
"title": "Update website HTTPS redirect, CDN and cache settings",
|
|
211
|
+
"annotations": {
|
|
212
|
+
"title": "Update website HTTPS redirect, CDN and cache settings",
|
|
213
|
+
"readOnlyHint": false,
|
|
214
|
+
"destructiveHint": true
|
|
215
|
+
},
|
|
216
|
+
"topic": "hosting",
|
|
217
|
+
"description": "Change a website's HTTPS redirect, CDN and server cache settings in one call. Pass only the settings to change, at least one. Settings are applied in the order cache, cachelessMode, cdn, httpsRedirect, and the call stops at the first failure. applied lists the settings that were changed. When a setting fails, the call returns an error whose text is the same JSON: failed names the setting and why, and skipped lists the ones not attempted; a multi-execute batch stops there too. Turning httpsRedirect on needs an active SSL certificate: the call checks it first and changes nothing when there is none. Install one with hosting_ssl_install and wait until hosting_websites_get-settings shows ssl.status active. cachelessMode is applied in the background and takes effect within a few minutes; enabling the CDN changes DNS records, so visitors are served through it after a few minutes of propagation. Certificates are not installed or removed here: use hosting_ssl_install and hosting_ssl_uninstall. Read the current values with hosting_websites_get-settings. Works for Shared and Cloud hosting websites.",
|
|
218
|
+
"method": "",
|
|
219
|
+
"path": "",
|
|
220
|
+
"inputSchema": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"domain": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
226
|
+
},
|
|
227
|
+
"cache": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"description": "Turn server-side caching on (true) or off (false). Keep it on for production websites; to bypass it while developing, use cachelessMode instead."
|
|
230
|
+
},
|
|
231
|
+
"cachelessMode": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"description": "Turn development (cacheless) mode on (true) or off (false). While it is on nothing is cached, so changes show at once; turn it off when done. Applied in the background within a few minutes."
|
|
234
|
+
},
|
|
235
|
+
"cdn": {
|
|
236
|
+
"type": "boolean",
|
|
237
|
+
"description": "Turn the Hostinger CDN on (true) or off (false). Changes DNS records; propagation takes a few minutes. Cannot be turned off for platform-managed domains (*.hostingersite.com)."
|
|
238
|
+
},
|
|
239
|
+
"httpsRedirect": {
|
|
240
|
+
"type": "boolean",
|
|
241
|
+
"description": "Redirect HTTP to HTTPS (true) or stop redirecting (false). Turning it on needs an active SSL certificate (see hosting_ssl_install)."
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"domain"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"security": [],
|
|
249
|
+
"custom": true,
|
|
250
|
+
"replacesHidden": true,
|
|
251
|
+
"templateFile": "update-website-settings.template.js",
|
|
252
|
+
"templateFileTS": "update-website-settings.template.ts",
|
|
253
|
+
"handlerMethod": "handleHostingWebsitesUpdateSettings",
|
|
254
|
+
"group": "hosting"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "hosting_cache_clear",
|
|
258
|
+
"title": "Clear website cache",
|
|
259
|
+
"annotations": {
|
|
260
|
+
"title": "Clear website cache",
|
|
261
|
+
"readOnlyHint": false,
|
|
262
|
+
"destructiveHint": true
|
|
263
|
+
},
|
|
264
|
+
"topic": "hosting",
|
|
265
|
+
"description": "Clear a website's server cache (the hosting server's page cache) and Hostinger CDN cache, so updated content shows at once. By default (scope: all) it clears the server cache and, when the CDN is on, purges the CDN too. scope: cdn purges only the CDN edge cache and leaves the server cache alone; that fails with 422 when the CDN is off. For a WordPress site installed in a subdirectory, pass directory to clear that installation's cache (only with scope all). This does not purge the WordPress LiteSpeed Cache plugin: that is a separate WordPress operation (wordpress_litespeed-cache_purge-lite-speed). To turn caching or the CDN on or off use hosting_websites_update-settings. Works for Shared and Cloud hosting websites.",
|
|
266
|
+
"method": "",
|
|
267
|
+
"path": "",
|
|
268
|
+
"inputSchema": {
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"domain": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)"
|
|
274
|
+
},
|
|
275
|
+
"scope": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"enum": [
|
|
278
|
+
"all",
|
|
279
|
+
"cdn"
|
|
280
|
+
],
|
|
281
|
+
"description": "What to clear: all (default) clears the server cache and, when the CDN is on, the CDN too; cdn purges only the CDN edge cache and fails when the CDN is off.",
|
|
282
|
+
"default": "all"
|
|
283
|
+
},
|
|
284
|
+
"directory": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"description": "WordPress installed in a subdirectory: its directory relative to the website root (e.g., blog), to clear that installation's cache. Only when scope is all; default the website root."
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": [
|
|
290
|
+
"domain"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"security": [],
|
|
294
|
+
"custom": true,
|
|
295
|
+
"replacesHidden": true,
|
|
296
|
+
"templateFile": "clear-cache.template.js",
|
|
297
|
+
"templateFileTS": "clear-cache.template.ts",
|
|
298
|
+
"handlerMethod": "handleHostingCacheClear",
|
|
299
|
+
"group": "hosting"
|
|
300
|
+
},
|
|
176
301
|
{
|
|
177
302
|
"name": "hosting_import-wordpress-website",
|
|
178
303
|
"title": "Import WordPress website",
|
|
@@ -587,7 +712,8 @@ export default [
|
|
|
587
712
|
"apiToken": []
|
|
588
713
|
}
|
|
589
714
|
],
|
|
590
|
-
"group": "hosting"
|
|
715
|
+
"group": "hosting",
|
|
716
|
+
"hidden": true
|
|
591
717
|
},
|
|
592
718
|
{
|
|
593
719
|
"name": "hosting_cache_status",
|
|
@@ -622,7 +748,8 @@ export default [
|
|
|
622
748
|
"apiToken": []
|
|
623
749
|
}
|
|
624
750
|
],
|
|
625
|
-
"group": "hosting"
|
|
751
|
+
"group": "hosting",
|
|
752
|
+
"hidden": true
|
|
626
753
|
},
|
|
627
754
|
{
|
|
628
755
|
"name": "hosting_cache_toggle-cacheless",
|
|
@@ -663,7 +790,8 @@ export default [
|
|
|
663
790
|
"apiToken": []
|
|
664
791
|
}
|
|
665
792
|
],
|
|
666
|
-
"group": "hosting"
|
|
793
|
+
"group": "hosting",
|
|
794
|
+
"hidden": true
|
|
667
795
|
},
|
|
668
796
|
{
|
|
669
797
|
"name": "hosting_cache_toggle-website",
|
|
@@ -704,7 +832,8 @@ export default [
|
|
|
704
832
|
"apiToken": []
|
|
705
833
|
}
|
|
706
834
|
],
|
|
707
|
-
"group": "hosting"
|
|
835
|
+
"group": "hosting",
|
|
836
|
+
"hidden": true
|
|
708
837
|
},
|
|
709
838
|
{
|
|
710
839
|
"name": "hosting_cdn_disable",
|
|
@@ -739,7 +868,8 @@ export default [
|
|
|
739
868
|
"apiToken": []
|
|
740
869
|
}
|
|
741
870
|
],
|
|
742
|
-
"group": "hosting"
|
|
871
|
+
"group": "hosting",
|
|
872
|
+
"hidden": true
|
|
743
873
|
},
|
|
744
874
|
{
|
|
745
875
|
"name": "hosting_cdn_enable",
|
|
@@ -774,7 +904,8 @@ export default [
|
|
|
774
904
|
"apiToken": []
|
|
775
905
|
}
|
|
776
906
|
],
|
|
777
|
-
"group": "hosting"
|
|
907
|
+
"group": "hosting",
|
|
908
|
+
"hidden": true
|
|
778
909
|
},
|
|
779
910
|
{
|
|
780
911
|
"name": "hosting_cdn_purge-cache",
|
|
@@ -810,7 +941,8 @@ export default [
|
|
|
810
941
|
"apiToken": []
|
|
811
942
|
}
|
|
812
943
|
],
|
|
813
|
-
"group": "hosting"
|
|
944
|
+
"group": "hosting",
|
|
945
|
+
"hidden": true
|
|
814
946
|
},
|
|
815
947
|
{
|
|
816
948
|
"name": "hosting_cdn_status",
|
|
@@ -845,7 +977,8 @@ export default [
|
|
|
845
977
|
"apiToken": []
|
|
846
978
|
}
|
|
847
979
|
],
|
|
848
|
-
"group": "hosting"
|
|
980
|
+
"group": "hosting",
|
|
981
|
+
"hidden": true
|
|
849
982
|
},
|
|
850
983
|
{
|
|
851
984
|
"name": "hosting_cron-jobs_list",
|
|
@@ -3942,7 +4075,8 @@ export default [
|
|
|
3942
4075
|
"apiToken": []
|
|
3943
4076
|
}
|
|
3944
4077
|
],
|
|
3945
|
-
"group": "hosting"
|
|
4078
|
+
"group": "hosting",
|
|
4079
|
+
"hidden": true
|
|
3946
4080
|
},
|
|
3947
4081
|
{
|
|
3948
4082
|
"name": "hosting_ssl_toggle-https-redirect",
|
|
@@ -3983,7 +4117,8 @@ export default [
|
|
|
3983
4117
|
"apiToken": []
|
|
3984
4118
|
}
|
|
3985
4119
|
],
|
|
3986
|
-
"group": "hosting"
|
|
4120
|
+
"group": "hosting",
|
|
4121
|
+
"hidden": true
|
|
3987
4122
|
},
|
|
3988
4123
|
{
|
|
3989
4124
|
"name": "hosting_ssl_uninstall",
|