hostinger-api-mcp 1.5.0 → 1.5.3
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/README.md +140 -32
- package/gemini-extension.json +1 -1
- package/package.json +3 -2
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/agency-hosting.js +434 -0
- package/src/core/tools/agency-hosting.ts +445 -0
- package/src/core/tools/all.js +448 -65
- package/src/core/tools/all.ts +448 -65
- package/src/core/tools/hosting.js +17 -65
- package/src/core/tools/hosting.ts +17 -65
- package/src/servers/agency-hosting.js +6 -0
- package/src/servers/agency-hosting.ts +6 -0
- 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/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 +268 -45
package/src/core/tools/all.js
CHANGED
|
@@ -257,6 +257,437 @@ export default [
|
|
|
257
257
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
258
258
|
"group": "hosting"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "agency-hosting_listAvailableDatacentersForAnAgencyPlanOrderV1",
|
|
262
|
+
"description": "Lists the datacenters available for provisioning a new website on the given Agency Plan\nhosting order.\n\nEach datacenter includes a `pinger_url` you can ping from the client to measure round-trip\nlatency; comparing the results across datacenters lets you pick the nearest one (lowest\nping) before choosing its `code` as the `datacenter_code` when creating a website setup.",
|
|
263
|
+
"method": "GET",
|
|
264
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/datacenters",
|
|
265
|
+
"inputSchema": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"order_id": {
|
|
269
|
+
"type": "integer",
|
|
270
|
+
"description": "Agency Plan order ID"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"order_id"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"security": [
|
|
278
|
+
{
|
|
279
|
+
"apiToken": []
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"group": "agency-hosting"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "agency-hosting_changeAgencyPlanWebsiteDomainV1",
|
|
286
|
+
"description": "Changes the primary domain for an Agency Plan website.\n\nProvide the current domain in the path and the new domain in the request body.\nSet domain to null to revert to the temporary domain.",
|
|
287
|
+
"method": "PUT",
|
|
288
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}",
|
|
289
|
+
"inputSchema": {
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"website_uid": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"description": "Agency Plan website UID"
|
|
295
|
+
},
|
|
296
|
+
"from_domain": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Current domain name to change from"
|
|
299
|
+
},
|
|
300
|
+
"domain": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "New domain to assign to the website. Set to null to revert to the temporary domain."
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"required": [
|
|
306
|
+
"website_uid",
|
|
307
|
+
"from_domain",
|
|
308
|
+
"domain"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
"security": [
|
|
312
|
+
{
|
|
313
|
+
"apiToken": []
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"group": "agency-hosting"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "agency-hosting_linkDomainToAgencyPlanWebsiteV1",
|
|
320
|
+
"description": "Links a domain to the specified Agency Plan website so it can serve traffic for that domain.",
|
|
321
|
+
"method": "POST",
|
|
322
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains",
|
|
323
|
+
"inputSchema": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"website_uid": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"description": "Agency Plan website UID"
|
|
329
|
+
},
|
|
330
|
+
"domain": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "Fully qualified domain name to link to the website"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"required": [
|
|
336
|
+
"website_uid",
|
|
337
|
+
"domain"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
"security": [
|
|
341
|
+
{
|
|
342
|
+
"apiToken": []
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"group": "agency-hosting"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "agency-hosting_listAgencyPlanDomainsV1",
|
|
349
|
+
"description": "Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client.\n\nUse the website_uuids filter to narrow results to specific websites.",
|
|
350
|
+
"method": "GET",
|
|
351
|
+
"path": "/api/agency-hosting/v1/domains",
|
|
352
|
+
"inputSchema": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"page": {
|
|
356
|
+
"type": "integer",
|
|
357
|
+
"description": "Page number"
|
|
358
|
+
},
|
|
359
|
+
"per_page": {
|
|
360
|
+
"type": "integer",
|
|
361
|
+
"description": "Number of items per page"
|
|
362
|
+
},
|
|
363
|
+
"website_uuids": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"description": "Filter by website UIDs",
|
|
366
|
+
"items": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "website_uuids parameter"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"required": []
|
|
373
|
+
},
|
|
374
|
+
"security": [
|
|
375
|
+
{
|
|
376
|
+
"apiToken": []
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"group": "agency-hosting"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "agency-hosting_unlinkDomainFromAgencyPlanWebsiteV1",
|
|
383
|
+
"description": "Unlinks a domain from the specified Agency Plan website.\n\nThe website stops serving traffic on this domain immediately.\n\nWebsite files and database are preserved, and any other linked domains remain accessible.\n\nIf this is the only domain on the website, unlinking leaves the website without an accessible domain.",
|
|
384
|
+
"method": "DELETE",
|
|
385
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}",
|
|
386
|
+
"inputSchema": {
|
|
387
|
+
"type": "object",
|
|
388
|
+
"properties": {
|
|
389
|
+
"website_uid": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"description": "Agency Plan website UID"
|
|
392
|
+
},
|
|
393
|
+
"domain": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"description": "Domain name"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"required": [
|
|
399
|
+
"website_uid",
|
|
400
|
+
"domain"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"security": [
|
|
404
|
+
{
|
|
405
|
+
"apiToken": []
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"group": "agency-hosting"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "agency-hosting_provisionANewAgencyPlanWebsiteV1",
|
|
412
|
+
"description": "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` — omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
|
|
413
|
+
"method": "POST",
|
|
414
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/setups",
|
|
415
|
+
"inputSchema": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"properties": {
|
|
418
|
+
"order_id": {
|
|
419
|
+
"type": "integer",
|
|
420
|
+
"description": "Agency Plan order ID"
|
|
421
|
+
},
|
|
422
|
+
"datacenter_code": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "Datacenter code where the website should be provisioned. Available codes depend on live capacity and are not a fixed set."
|
|
425
|
+
},
|
|
426
|
+
"flavor": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"description": "Setup flavor: a specific WordPress version in the format `wp-<major>.<minor>` or `wp-<major>.<minor>.<patch>` (e.g. `wp-6.8.2`), or `php-fpm` for a plain PHP stack. Generic versions like `wp-latest` are not allowed."
|
|
429
|
+
},
|
|
430
|
+
"settings": {
|
|
431
|
+
"type": "object",
|
|
432
|
+
"description": "Website settings",
|
|
433
|
+
"properties": {
|
|
434
|
+
"php": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"description": "php parameter",
|
|
437
|
+
"properties": {
|
|
438
|
+
"version": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "PHP version"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"required": [
|
|
444
|
+
"version"
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": [
|
|
449
|
+
"php"
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
"domain": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Primary domain to attach to the website. Omit or set to null to get a free auto-generated *.hostingersite.com subdomain instead."
|
|
455
|
+
},
|
|
456
|
+
"type": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "Website type",
|
|
459
|
+
"enum": [
|
|
460
|
+
"horizons",
|
|
461
|
+
"node-static"
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
"wordpress": {
|
|
465
|
+
"type": "object",
|
|
466
|
+
"description": "WordPress installation options",
|
|
467
|
+
"properties": {
|
|
468
|
+
"language": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"description": "language parameter"
|
|
471
|
+
},
|
|
472
|
+
"title": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"description": "title parameter"
|
|
475
|
+
},
|
|
476
|
+
"admin": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"description": "admin parameter",
|
|
479
|
+
"properties": {
|
|
480
|
+
"user": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "user parameter"
|
|
483
|
+
},
|
|
484
|
+
"password": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "password parameter"
|
|
487
|
+
},
|
|
488
|
+
"email": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "email parameter"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"required": [
|
|
494
|
+
"user",
|
|
495
|
+
"password",
|
|
496
|
+
"email"
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"language",
|
|
502
|
+
"title",
|
|
503
|
+
"admin"
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
"clone": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"description": "Clone the new website from an existing website",
|
|
509
|
+
"properties": {
|
|
510
|
+
"website_uid": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"description": "website_uid parameter"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": [
|
|
516
|
+
"website_uid"
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"derive_domain": {
|
|
520
|
+
"type": "object",
|
|
521
|
+
"description": "Derive the domain from an existing vhost",
|
|
522
|
+
"properties": {
|
|
523
|
+
"from_vhost": {
|
|
524
|
+
"type": "object",
|
|
525
|
+
"description": "from_vhost parameter",
|
|
526
|
+
"properties": {
|
|
527
|
+
"username": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"description": "username parameter"
|
|
530
|
+
},
|
|
531
|
+
"vhost": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"description": "vhost parameter"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"username",
|
|
538
|
+
"vhost"
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"required": [
|
|
543
|
+
"from_vhost"
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"required": [
|
|
548
|
+
"order_id",
|
|
549
|
+
"datacenter_code",
|
|
550
|
+
"flavor",
|
|
551
|
+
"settings"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"security": [
|
|
555
|
+
{
|
|
556
|
+
"apiToken": []
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"group": "agency-hosting"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "agency-hosting_getAgencyPlanWebsiteSetupStatusV1",
|
|
563
|
+
"description": "Returns the current status of an Agency Plan website setup started via the setups\nendpoint.\n\nPoll this endpoint using the `setup_uuid` returned from the provisioning request until\n`status` becomes `completed`, at which point `website_uid` identifies the new website.",
|
|
564
|
+
"method": "GET",
|
|
565
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}",
|
|
566
|
+
"inputSchema": {
|
|
567
|
+
"type": "object",
|
|
568
|
+
"properties": {
|
|
569
|
+
"order_id": {
|
|
570
|
+
"type": "integer",
|
|
571
|
+
"description": "Agency Plan order ID"
|
|
572
|
+
},
|
|
573
|
+
"setup_uuid": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"description": "Website setup UUID"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"order_id",
|
|
580
|
+
"setup_uuid"
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
"security": [
|
|
584
|
+
{
|
|
585
|
+
"apiToken": []
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"group": "agency-hosting"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "agency-hosting_buildAgencyPlanWebsiteNodeJSAssetsV1",
|
|
592
|
+
"description": "Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.\n\nUpload the archive to file browser first, then provide its relative path from document root in this request.\nWebsite contents are overwritten by the build result, which is deployed to public_html.",
|
|
593
|
+
"method": "POST",
|
|
594
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/build-assets",
|
|
595
|
+
"inputSchema": {
|
|
596
|
+
"type": "object",
|
|
597
|
+
"properties": {
|
|
598
|
+
"website_uid": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"description": "Agency Plan website UID"
|
|
601
|
+
},
|
|
602
|
+
"archive_path": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"description": "Directory, relative to the website document root, where the uploaded site archive currently lives. Most commonly this is simply `public_html`."
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"required": [
|
|
608
|
+
"website_uid",
|
|
609
|
+
"archive_path"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"security": [
|
|
613
|
+
{
|
|
614
|
+
"apiToken": []
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
"group": "agency-hosting"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "agency-hosting_getAgencyPlanWebsiteDetailsV1",
|
|
621
|
+
"description": "Retrieves detailed information about a specific Agency Plan website, including configuration,\nstatus, metadata, hosting plan details, and resource quotas.",
|
|
622
|
+
"method": "GET",
|
|
623
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}",
|
|
624
|
+
"inputSchema": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"properties": {
|
|
627
|
+
"website_uid": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"description": "Agency Plan website UID"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"required": [
|
|
633
|
+
"website_uid"
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
"security": [
|
|
637
|
+
{
|
|
638
|
+
"apiToken": []
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"group": "agency-hosting"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "agency-hosting_deleteAgencyPlanWebsiteV1",
|
|
645
|
+
"description": "Deletes an Agency Plan website and schedules cleanup of its resources.\n\nThis action is irreversible. Website files, databases, and linked domains are removed.",
|
|
646
|
+
"method": "DELETE",
|
|
647
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}",
|
|
648
|
+
"inputSchema": {
|
|
649
|
+
"type": "object",
|
|
650
|
+
"properties": {
|
|
651
|
+
"website_uid": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"description": "Agency Plan website UID"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"required": [
|
|
657
|
+
"website_uid"
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
"security": [
|
|
661
|
+
{
|
|
662
|
+
"apiToken": []
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"group": "agency-hosting"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "agency-hosting_listRunningAgencyPlanWebsiteProcessesV1",
|
|
669
|
+
"description": "Lists active and recently completed asynchronous processes for an Agency Plan website.\n\nEach process has a unique ID (for tracking), a type, and a status (running, completed, failed).\nPoll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.",
|
|
670
|
+
"method": "GET",
|
|
671
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/processes",
|
|
672
|
+
"inputSchema": {
|
|
673
|
+
"type": "object",
|
|
674
|
+
"properties": {
|
|
675
|
+
"website_uid": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"description": "Agency Plan website UID"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"required": [
|
|
681
|
+
"website_uid"
|
|
682
|
+
]
|
|
683
|
+
},
|
|
684
|
+
"security": [
|
|
685
|
+
{
|
|
686
|
+
"apiToken": []
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"group": "agency-hosting"
|
|
690
|
+
},
|
|
260
691
|
{
|
|
261
692
|
"name": "billing_getCatalogItemListV1",
|
|
262
693
|
"description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.",
|
|
@@ -1779,10 +2210,10 @@ export default [
|
|
|
1779
2210
|
"group": "hosting"
|
|
1780
2211
|
},
|
|
1781
2212
|
{
|
|
1782
|
-
"name": "
|
|
1783
|
-
"description": "Turns
|
|
2213
|
+
"name": "hosting_toggleCachelessModeV1",
|
|
2214
|
+
"description": "Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing\nis cached, effectively turning off all caching for the website; use it while actively developing,\ntesting changes, debugging issues, or when real-time updates must be visible. Disable it after\nfinishing development work to restore the performance benefits of caching.",
|
|
1784
2215
|
"method": "PATCH",
|
|
1785
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/
|
|
2216
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle",
|
|
1786
2217
|
"inputSchema": {
|
|
1787
2218
|
"type": "object",
|
|
1788
2219
|
"properties": {
|
|
@@ -1793,40 +2224,16 @@ export default [
|
|
|
1793
2224
|
"domain": {
|
|
1794
2225
|
"type": "string",
|
|
1795
2226
|
"description": "Domain name"
|
|
1796
|
-
}
|
|
1797
|
-
},
|
|
1798
|
-
"required": [
|
|
1799
|
-
"username",
|
|
1800
|
-
"domain"
|
|
1801
|
-
]
|
|
1802
|
-
},
|
|
1803
|
-
"security": [
|
|
1804
|
-
{
|
|
1805
|
-
"apiToken": []
|
|
1806
|
-
}
|
|
1807
|
-
],
|
|
1808
|
-
"group": "hosting"
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
"name": "hosting_disableWebsiteCacheV1",
|
|
1812
|
-
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
1813
|
-
"method": "PATCH",
|
|
1814
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
1815
|
-
"inputSchema": {
|
|
1816
|
-
"type": "object",
|
|
1817
|
-
"properties": {
|
|
1818
|
-
"username": {
|
|
1819
|
-
"type": "string",
|
|
1820
|
-
"description": "username parameter"
|
|
1821
2227
|
},
|
|
1822
|
-
"
|
|
1823
|
-
"type": "
|
|
1824
|
-
"description": "
|
|
2228
|
+
"enabled": {
|
|
2229
|
+
"type": "boolean",
|
|
2230
|
+
"description": "Turn development (cacheless) mode on (true) or off (false) for the website."
|
|
1825
2231
|
}
|
|
1826
2232
|
},
|
|
1827
2233
|
"required": [
|
|
1828
2234
|
"username",
|
|
1829
|
-
"domain"
|
|
2235
|
+
"domain",
|
|
2236
|
+
"enabled"
|
|
1830
2237
|
]
|
|
1831
2238
|
},
|
|
1832
2239
|
"security": [
|
|
@@ -1837,10 +2244,10 @@ export default [
|
|
|
1837
2244
|
"group": "hosting"
|
|
1838
2245
|
},
|
|
1839
2246
|
{
|
|
1840
|
-
"name": "
|
|
1841
|
-
"description": "
|
|
2247
|
+
"name": "hosting_toggleWebsiteCacheV1",
|
|
2248
|
+
"description": "Turns server-side caching for the website on or off, based on the enabled flag. Enable it for\nfaster page loads, reduced server load, and improved user experience; recommended for production\nwebsites. Disabling may impact performance; to temporarily bypass caching while developing or\ndebugging, prefer toggling cacheless mode instead.\n\nDoes nothing if caching is already in the requested state.",
|
|
1842
2249
|
"method": "PATCH",
|
|
1843
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/
|
|
2250
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle",
|
|
1844
2251
|
"inputSchema": {
|
|
1845
2252
|
"type": "object",
|
|
1846
2253
|
"properties": {
|
|
@@ -1851,40 +2258,16 @@ export default [
|
|
|
1851
2258
|
"domain": {
|
|
1852
2259
|
"type": "string",
|
|
1853
2260
|
"description": "Domain name"
|
|
1854
|
-
}
|
|
1855
|
-
},
|
|
1856
|
-
"required": [
|
|
1857
|
-
"username",
|
|
1858
|
-
"domain"
|
|
1859
|
-
]
|
|
1860
|
-
},
|
|
1861
|
-
"security": [
|
|
1862
|
-
{
|
|
1863
|
-
"apiToken": []
|
|
1864
|
-
}
|
|
1865
|
-
],
|
|
1866
|
-
"group": "hosting"
|
|
1867
|
-
},
|
|
1868
|
-
{
|
|
1869
|
-
"name": "hosting_enableWebsiteCacheV1",
|
|
1870
|
-
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
1871
|
-
"method": "PATCH",
|
|
1872
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
1873
|
-
"inputSchema": {
|
|
1874
|
-
"type": "object",
|
|
1875
|
-
"properties": {
|
|
1876
|
-
"username": {
|
|
1877
|
-
"type": "string",
|
|
1878
|
-
"description": "username parameter"
|
|
1879
2261
|
},
|
|
1880
|
-
"
|
|
1881
|
-
"type": "
|
|
1882
|
-
"description": "
|
|
2262
|
+
"enabled": {
|
|
2263
|
+
"type": "boolean",
|
|
2264
|
+
"description": "Turn server-side caching on (true) or off (false) for the website."
|
|
1883
2265
|
}
|
|
1884
2266
|
},
|
|
1885
2267
|
"required": [
|
|
1886
2268
|
"username",
|
|
1887
|
-
"domain"
|
|
2269
|
+
"domain",
|
|
2270
|
+
"enabled"
|
|
1888
2271
|
]
|
|
1889
2272
|
},
|
|
1890
2273
|
"security": [
|
|
@@ -2756,7 +3139,7 @@ export default [
|
|
|
2756
3139
|
"group": "hosting"
|
|
2757
3140
|
},
|
|
2758
3141
|
{
|
|
2759
|
-
"name": "
|
|
3142
|
+
"name": "hosting_restartNode_jsApplicationV1",
|
|
2760
3143
|
"description": "Restarts the Node.js server process for the website. Does not rebuild or redeploy the\napplication. Use it to apply environment or configuration changes, or to recover a hung\napplication.\n\nOnly applicable to server-side applications (Express, Next.js, NestJS, etc.). Static\nfront-end apps (React, Vue, Vite) have no persistent server process, so restarting them\nhas no effect. Returns success even when the website has no server process to restart.",
|
|
2761
3144
|
"method": "POST",
|
|
2762
3145
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart",
|