@hostinger/mcp 3.2.0 → 3.2.2
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 +30 -0
- package/README.md +97 -22
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +157 -7
- package/src/core/tools/all.ts +157 -7
- package/src/core/tools/hosting.js +147 -5
- package/src/core/tools/hosting.ts +147 -5
- package/src/core/tools/wordpress.js +10 -2
- package/src/core/tools/wordpress.ts +10 -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 +142 -23
|
@@ -376,7 +376,7 @@ export default [
|
|
|
376
376
|
"readOnlyHint": false,
|
|
377
377
|
"destructiveHint": false
|
|
378
378
|
},
|
|
379
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/
|
|
379
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/orders/{order_id}/onboardings\n(`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings\n(`hosting_websites_list-setups`) with the `domain` filter until its `status` is\n`completed`.\n\nSend `type: headless` to turn a headless website (for example one created by\n`hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress\nwebsite: WordPress is installed into the `cms` directory with the Hostinger headless\nMU plugin and the website is marked as a headless WordPress website. `directory` is\nnot allowed with it. The target website must already be headless: the headless\ninstall rewrites the root `.htaccess`, so on any other website the request is\nrejected with 422.\n\nCall GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`)\nfiltered by username and domain before proceeding to check whether WordPress is\nalready installed on the target domain/path. If WordPress already exists and\n`overwrite` is false (the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations\n(`wordpress_installations_list`) filtered by username and domain to track\nprogress. When the installation appears in that list, WordPress is ready.\n\nReturns 422 when the account already uses all the databases its plan allows,\nunless `database.name` is an existing database on the account.",
|
|
380
380
|
"method": "POST",
|
|
381
381
|
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
382
382
|
"inputSchema": {
|
|
@@ -398,9 +398,17 @@ export default [
|
|
|
398
398
|
"type": "string",
|
|
399
399
|
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
400
400
|
},
|
|
401
|
+
"type": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"description": "Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_start-setup`) with `type: headless_empty`; any other website is rejected with 422.",
|
|
404
|
+
"enum": [
|
|
405
|
+
"default",
|
|
406
|
+
"headless"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
401
409
|
"directory": {
|
|
402
410
|
"type": "string",
|
|
403
|
-
"description": "
|
|
411
|
+
"description": "Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`."
|
|
404
412
|
},
|
|
405
413
|
"overwrite": {
|
|
406
414
|
"type": "boolean",
|
|
@@ -392,7 +392,7 @@ const tools: OpenApiTool[] = [
|
|
|
392
392
|
"readOnlyHint": false,
|
|
393
393
|
"destructiveHint": false
|
|
394
394
|
},
|
|
395
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/
|
|
395
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/orders/{order_id}/onboardings\n(`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings\n(`hosting_websites_list-setups`) with the `domain` filter until its `status` is\n`completed`.\n\nSend `type: headless` to turn a headless website (for example one created by\n`hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress\nwebsite: WordPress is installed into the `cms` directory with the Hostinger headless\nMU plugin and the website is marked as a headless WordPress website. `directory` is\nnot allowed with it. The target website must already be headless: the headless\ninstall rewrites the root `.htaccess`, so on any other website the request is\nrejected with 422.\n\nCall GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`)\nfiltered by username and domain before proceeding to check whether WordPress is\nalready installed on the target domain/path. If WordPress already exists and\n`overwrite` is false (the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations\n(`wordpress_installations_list`) filtered by username and domain to track\nprogress. When the installation appears in that list, WordPress is ready.\n\nReturns 422 when the account already uses all the databases its plan allows,\nunless `database.name` is an existing database on the account.",
|
|
396
396
|
"method": "POST",
|
|
397
397
|
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
398
398
|
"inputSchema": {
|
|
@@ -414,9 +414,17 @@ const tools: OpenApiTool[] = [
|
|
|
414
414
|
"type": "string",
|
|
415
415
|
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
416
416
|
},
|
|
417
|
+
"type": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"description": "Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_start-setup`) with `type: headless_empty`; any other website is rejected with 422.",
|
|
420
|
+
"enum": [
|
|
421
|
+
"default",
|
|
422
|
+
"headless"
|
|
423
|
+
]
|
|
424
|
+
},
|
|
417
425
|
"directory": {
|
|
418
426
|
"type": "string",
|
|
419
|
-
"description": "
|
|
427
|
+
"description": "Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`."
|
|
420
428
|
},
|
|
421
429
|
"overwrite": {
|
|
422
430
|
"type": "boolean",
|
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.agency-hosting.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.2.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.2.2', tools, instructions });
|
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.agency-hosting.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.2.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.2.2', tools, instructions });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agent-readiness.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.2.
|
|
6
|
+
startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.2.2', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agent-readiness.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.2.
|
|
6
|
+
startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.2.2', tools });
|
package/src/servers/all.js
CHANGED
|
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
|
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
import skills from '../core/skills.js';
|
|
7
7
|
|
|
8
|
-
startServer({ name: 'hostinger-api-mcp', version: '3.2.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '3.2.2', tools, instructions, skills });
|
package/src/servers/all.ts
CHANGED
|
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
|
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
import skills from '../core/skills.js';
|
|
7
7
|
|
|
8
|
-
startServer({ name: 'hostinger-api-mcp', version: '3.2.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '3.2.2', tools, instructions, skills });
|
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-hosting-mcp', version: '3.2.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '3.2.2', tools, instructions });
|
package/src/servers/hosting.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-hosting-mcp', version: '3.2.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '3.2.2', tools, instructions });
|
package/src/servers/mail.js
CHANGED
package/src/servers/mail.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -3387,7 +3387,8 @@ interface in the provided website URL.
|
|
|
3387
3387
|
* Permanently clears all server-side cache for the website at once. Use it when content was
|
|
3388
3388
|
updated and needs to be visible immediately, or after making major changes.
|
|
3389
3389
|
|
|
3390
|
-
Also purges the Hostinger CDN cache when CDN is enabled on the website.
|
|
3390
|
+
Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN
|
|
3391
|
+
cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress
|
|
3391
3392
|
installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
3392
3393
|
*/
|
|
3393
3394
|
"hosting_cache_clear-website": {
|
|
@@ -3459,6 +3460,101 @@ Does nothing if caching is already in the requested state.
|
|
|
3459
3460
|
response: any; // Response structure will depend on the API
|
|
3460
3461
|
};
|
|
3461
3462
|
|
|
3463
|
+
/**
|
|
3464
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the
|
|
3465
|
+
website content is served directly from the origin server. Repeating the call is safe; when
|
|
3466
|
+
CDN is already disabled, it applies the DNS change again.
|
|
3467
|
+
|
|
3468
|
+
Returns 422 for platform-managed domains (for example `*.hostingersite.com` and
|
|
3469
|
+
`*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns
|
|
3470
|
+
422 while the account is being moved to another server (retry after the move finishes), or
|
|
3471
|
+
when the CDN provider rejects the change. Returns 404 when the domain is not a website on the
|
|
3472
|
+
account.
|
|
3473
|
+
*/
|
|
3474
|
+
"hosting_cdn_disable": {
|
|
3475
|
+
params: {
|
|
3476
|
+
/**
|
|
3477
|
+
* username parameter
|
|
3478
|
+
*/
|
|
3479
|
+
username: string;
|
|
3480
|
+
/**
|
|
3481
|
+
* Domain name
|
|
3482
|
+
*/
|
|
3483
|
+
domain: string;
|
|
3484
|
+
};
|
|
3485
|
+
response: any; // Response structure will depend on the API
|
|
3486
|
+
};
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the
|
|
3490
|
+
load on the server. Works for the main domain, parked domains and subdomains of the account.
|
|
3491
|
+
|
|
3492
|
+
Enabling changes the domain's DNS records and usually takes a few seconds. After that, DNS
|
|
3493
|
+
propagation can take a few more minutes before visitors are served through the CDN.
|
|
3494
|
+
|
|
3495
|
+
Repeating the call is safe, for example after a timeout. When CDN is already enabled, it
|
|
3496
|
+
applies the DNS change again and refreshes the CDN SSL certificate.
|
|
3497
|
+
|
|
3498
|
+
Returns 422 when the account is disabled, while the account is being moved to another
|
|
3499
|
+
server (retry after the move finishes), or when the CDN provider rejects the change.
|
|
3500
|
+
Returns 404 when the domain is not a website on the account.
|
|
3501
|
+
*/
|
|
3502
|
+
"hosting_cdn_enable": {
|
|
3503
|
+
params: {
|
|
3504
|
+
/**
|
|
3505
|
+
* username parameter
|
|
3506
|
+
*/
|
|
3507
|
+
username: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* Domain name
|
|
3510
|
+
*/
|
|
3511
|
+
domain: string;
|
|
3512
|
+
};
|
|
3513
|
+
response: any; // Response structure will depend on the API
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
* Purges the website's content from the Hostinger CDN edge cache only. The origin server cache
|
|
3518
|
+
is not touched; to clear both, use `Clear website cache`.
|
|
3519
|
+
|
|
3520
|
+
Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a
|
|
3521
|
+
website on the account.
|
|
3522
|
+
*/
|
|
3523
|
+
"hosting_cdn_purge-cache": {
|
|
3524
|
+
params: {
|
|
3525
|
+
/**
|
|
3526
|
+
* username parameter
|
|
3527
|
+
*/
|
|
3528
|
+
username: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* Domain name
|
|
3531
|
+
*/
|
|
3532
|
+
domain: string;
|
|
3533
|
+
};
|
|
3534
|
+
response: any; // Response structure will depend on the API
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
/**
|
|
3538
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main
|
|
3539
|
+
domain, parked domains and subdomains of the account.
|
|
3540
|
+
|
|
3541
|
+
The domain must be the exact website name as listed on the account, without a `www.` prefix.
|
|
3542
|
+
Returns 404 when the domain is not a website on the account.
|
|
3543
|
+
*/
|
|
3544
|
+
"hosting_cdn_status": {
|
|
3545
|
+
params: {
|
|
3546
|
+
/**
|
|
3547
|
+
* username parameter
|
|
3548
|
+
*/
|
|
3549
|
+
username: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* Domain name
|
|
3552
|
+
*/
|
|
3553
|
+
domain: string;
|
|
3554
|
+
};
|
|
3555
|
+
response: any; // Response structure will depend on the API
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3462
3558
|
/**
|
|
3463
3559
|
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
3464
3560
|
*/
|
|
@@ -4957,8 +5053,9 @@ wait for `status: completed` before uploading files, deploying or creating datab
|
|
|
4957
5053
|
`failed` means the setup stopped before finishing or has not reported progress for
|
|
4958
5054
|
over an hour. Setups older than 24 hours are not listed.
|
|
4959
5055
|
|
|
4960
|
-
`type` is the website type the setup was started with (`wordpress`, `
|
|
4961
|
-
`headless_ecommerce`, `headless_pocketbase`), or `null` for an empty
|
|
5056
|
+
`type` is the website type the setup was started with (`wordpress`, `headless_empty`,
|
|
5057
|
+
`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty
|
|
5058
|
+
website.
|
|
4962
5059
|
*/
|
|
4963
5060
|
"hosting_websites_list-setups": {
|
|
4964
5061
|
params: {
|
|
@@ -4981,17 +5078,25 @@ over an hour. Setups older than 24 hours are not listed.
|
|
|
4981
5078
|
/**
|
|
4982
5079
|
* Starts a website setup on a Web or Cloud hosting order and returns the created setup
|
|
4983
5080
|
right away; the website itself is provisioned asynchronously. Poll the list website
|
|
4984
|
-
setups endpoint with the `domain` filter every 10 to 15
|
|
4985
|
-
`status: completed` before uploading files, deploying or creating
|
|
5081
|
+
setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15
|
|
5082
|
+
seconds and wait for `status: completed` before uploading files, deploying or creating
|
|
5083
|
+
databases.
|
|
4986
5084
|
|
|
4987
5085
|
Omit `type` for an empty website. `type: wordpress` installs WordPress in the website
|
|
4988
5086
|
root with the admin user, email and password from `wordpress`, the domain as the site
|
|
4989
5087
|
title, and `en_US` when `wordpress.language` is omitted. The headless types
|
|
4990
|
-
(`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`)
|
|
4991
|
-
website; `headless_wordpress` additionally installs WordPress into the
|
|
4992
|
-
of the website root with generated credentials.
|
|
4993
|
-
|
|
4994
|
-
|
|
5088
|
+
(`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`)
|
|
5089
|
+
create a headless website; `headless_wordpress` additionally installs WordPress into the
|
|
5090
|
+
`cms` directory of the website root with generated credentials. `headless_empty` installs
|
|
5091
|
+
nothing: WordPress can be added later through
|
|
5092
|
+
`POST /api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
5093
|
+
(`wordpress_installations_install`) with `type: headless`.
|
|
5094
|
+
|
|
5095
|
+
Omit `domain` to set the website up on a generated temporary free subdomain. To know the
|
|
5096
|
+
free subdomain before the call, so a timed-out call can be looked up and retried on the
|
|
5097
|
+
same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains`
|
|
5098
|
+
(`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for
|
|
5099
|
+
24 hours, only from the client that generated it.
|
|
4995
5100
|
|
|
4996
5101
|
When the order has no hosting account yet, the setup creates one first, in the datacenter
|
|
4997
5102
|
given by `datacenter_code` or the order's default datacenter when it is omitted.
|
|
@@ -5006,11 +5111,11 @@ running.
|
|
|
5006
5111
|
*/
|
|
5007
5112
|
order_id: number;
|
|
5008
5113
|
/**
|
|
5009
|
-
* Website type. Omit or `null` for an empty website. `wordpress` installs WordPress in the website root and requires `wordpress`. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory with generated credentials.
|
|
5114
|
+
* Website type. Omit or `null` for an empty website. `wordpress` installs WordPress in the website root and requires `wordpress`. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory with generated credentials. `headless_empty` installs nothing, so WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`.
|
|
5010
5115
|
*/
|
|
5011
5116
|
type?: string;
|
|
5012
5117
|
/**
|
|
5013
|
-
* Customer-owned domain. Cannot start with "www." and can have at most one subdomain level, e.g. `blog.example.com`. Omit or `null` to set the website up on a generated temporary free subdomain.
|
|
5118
|
+
* Customer-owned domain, or a free subdomain you generated through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) in the last 24 hours. Cannot start with "www." and can have at most one subdomain level, e.g. `blog.example.com`. Omit or `null` to set the website up on a generated temporary free subdomain.
|
|
5014
5119
|
*/
|
|
5015
5120
|
domain?: string;
|
|
5016
5121
|
/**
|
|
@@ -9666,19 +9771,29 @@ database files that have been uploaded to the website's directory.
|
|
|
9666
9771
|
* Install WordPress on an existing website.
|
|
9667
9772
|
|
|
9668
9773
|
The website must already exist before calling this endpoint. To create a new
|
|
9669
|
-
website first, use POST /api/hosting/v1/
|
|
9670
|
-
GET /api/hosting/v1/
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9774
|
+
website first, use POST /api/hosting/v1/orders/{order_id}/onboardings
|
|
9775
|
+
(`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings
|
|
9776
|
+
(`hosting_websites_list-setups`) with the `domain` filter until its `status` is
|
|
9777
|
+
`completed`.
|
|
9778
|
+
|
|
9779
|
+
Send `type: headless` to turn a headless website (for example one created by
|
|
9780
|
+
`hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress
|
|
9781
|
+
website: WordPress is installed into the `cms` directory with the Hostinger headless
|
|
9782
|
+
MU plugin and the website is marked as a headless WordPress website. `directory` is
|
|
9783
|
+
not allowed with it. The target website must already be headless: the headless
|
|
9784
|
+
install rewrites the root `.htaccess`, so on any other website the request is
|
|
9785
|
+
rejected with 422.
|
|
9786
|
+
|
|
9787
|
+
Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`)
|
|
9788
|
+
filtered by username and domain before proceeding to check whether WordPress is
|
|
9789
|
+
already installed on the target domain/path. If WordPress already exists and
|
|
9790
|
+
`overwrite` is false (the default), the async job will fail.
|
|
9676
9791
|
|
|
9677
9792
|
This operation is asynchronous: a successful response only means the install
|
|
9678
9793
|
job has been queued, not that WordPress is ready. Installation typically
|
|
9679
|
-
takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations
|
|
9680
|
-
by username and domain to track
|
|
9681
|
-
that list, WordPress is ready.
|
|
9794
|
+
takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations
|
|
9795
|
+
(`wordpress_installations_list`) filtered by username and domain to track
|
|
9796
|
+
progress. When the installation appears in that list, WordPress is ready.
|
|
9682
9797
|
|
|
9683
9798
|
Returns 422 when the account already uses all the databases its plan allows,
|
|
9684
9799
|
unless `database.name` is an existing database on the account.
|
|
@@ -9702,7 +9817,11 @@ unless `database.name` is an existing database on the account.
|
|
|
9702
9817
|
*/
|
|
9703
9818
|
language?: string;
|
|
9704
9819
|
/**
|
|
9705
|
-
*
|
|
9820
|
+
* Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_start-setup`) with `type: headless_empty`; any other website is rejected with 422.
|
|
9821
|
+
*/
|
|
9822
|
+
type?: string;
|
|
9823
|
+
/**
|
|
9824
|
+
* Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`.
|
|
9706
9825
|
*/
|
|
9707
9826
|
directory?: string;
|
|
9708
9827
|
/**
|