hostinger-api-sdk 1.67.0 → 1.68.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/README.md +2 -2
- package/api.ts +56 -46
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +46 -36
- package/dist/api.js +47 -43
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +46 -36
- package/dist/esm/api.js +47 -43
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentReadinessScansApi.md +10 -10
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +3 -1
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +2 -2
- package/docs/HostingWebsitesApi.md +3 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -4788,15 +4788,15 @@ export class AgentReadinessChecksApi extends BaseAPI {
|
|
|
4788
4788
|
export const AgentReadinessScansApiAxiosParamCreator = function (configuration) {
|
|
4789
4789
|
return {
|
|
4790
4790
|
/**
|
|
4791
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4792
|
-
* @summary Get
|
|
4791
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4792
|
+
* @summary Get agent readiness scan
|
|
4793
4793
|
* @param {string} domain Domain name the scan was run for
|
|
4794
4794
|
* @param {*} [options] Override http request option.
|
|
4795
4795
|
* @throws {RequiredError}
|
|
4796
4796
|
*/
|
|
4797
|
-
|
|
4797
|
+
getAgentReadinessScanV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4798
4798
|
// verify required parameter 'domain' is not null or undefined
|
|
4799
|
-
assertParamExists('
|
|
4799
|
+
assertParamExists('getAgentReadinessScanV1', 'domain', domain);
|
|
4800
4800
|
const localVarPath = `/api/agent-readiness/v1/scans/{domain}`
|
|
4801
4801
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4802
4802
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4820,15 +4820,15 @@ export const AgentReadinessScansApiAxiosParamCreator = function (configuration)
|
|
|
4820
4820
|
};
|
|
4821
4821
|
}),
|
|
4822
4822
|
/**
|
|
4823
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4824
|
-
* @summary Run
|
|
4823
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4824
|
+
* @summary Run agent readiness scan
|
|
4825
4825
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4826
4826
|
* @param {*} [options] Override http request option.
|
|
4827
4827
|
* @throws {RequiredError}
|
|
4828
4828
|
*/
|
|
4829
|
-
|
|
4829
|
+
runAgentReadinessScanV1: (agentReadinessV1ScansRunScanRequest_1, ...args_1) => __awaiter(this, [agentReadinessV1ScansRunScanRequest_1, ...args_1], void 0, function* (agentReadinessV1ScansRunScanRequest, options = {}) {
|
|
4830
4830
|
// verify required parameter 'agentReadinessV1ScansRunScanRequest' is not null or undefined
|
|
4831
|
-
assertParamExists('
|
|
4831
|
+
assertParamExists('runAgentReadinessScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest);
|
|
4832
4832
|
const localVarPath = `/api/agent-readiness/v1/scans`;
|
|
4833
4833
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4834
4834
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4862,32 +4862,32 @@ export const AgentReadinessScansApiFp = function (configuration) {
|
|
|
4862
4862
|
const localVarAxiosParamCreator = AgentReadinessScansApiAxiosParamCreator(configuration);
|
|
4863
4863
|
return {
|
|
4864
4864
|
/**
|
|
4865
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4866
|
-
* @summary Get
|
|
4865
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4866
|
+
* @summary Get agent readiness scan
|
|
4867
4867
|
* @param {string} domain Domain name the scan was run for
|
|
4868
4868
|
* @param {*} [options] Override http request option.
|
|
4869
4869
|
* @throws {RequiredError}
|
|
4870
4870
|
*/
|
|
4871
|
-
|
|
4871
|
+
getAgentReadinessScanV1(domain, options) {
|
|
4872
4872
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4873
4873
|
var _a, _b;
|
|
4874
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4875
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.
|
|
4874
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAgentReadinessScanV1(domain, options);
|
|
4875
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.getAgentReadinessScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4876
4876
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4877
4877
|
});
|
|
4878
4878
|
},
|
|
4879
4879
|
/**
|
|
4880
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4881
|
-
* @summary Run
|
|
4880
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4881
|
+
* @summary Run agent readiness scan
|
|
4882
4882
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4883
4883
|
* @param {*} [options] Override http request option.
|
|
4884
4884
|
* @throws {RequiredError}
|
|
4885
4885
|
*/
|
|
4886
|
-
|
|
4886
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
4887
4887
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4888
4888
|
var _a, _b;
|
|
4889
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4890
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.
|
|
4889
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options);
|
|
4890
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.runAgentReadinessScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4891
4891
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4892
4892
|
});
|
|
4893
4893
|
},
|
|
@@ -4901,24 +4901,24 @@ export const AgentReadinessScansApiFactory = function (configuration, basePath,
|
|
|
4901
4901
|
const localVarFp = AgentReadinessScansApiFp(configuration);
|
|
4902
4902
|
return {
|
|
4903
4903
|
/**
|
|
4904
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4905
|
-
* @summary Get
|
|
4904
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4905
|
+
* @summary Get agent readiness scan
|
|
4906
4906
|
* @param {string} domain Domain name the scan was run for
|
|
4907
4907
|
* @param {*} [options] Override http request option.
|
|
4908
4908
|
* @throws {RequiredError}
|
|
4909
4909
|
*/
|
|
4910
|
-
|
|
4911
|
-
return localVarFp.
|
|
4910
|
+
getAgentReadinessScanV1(domain, options) {
|
|
4911
|
+
return localVarFp.getAgentReadinessScanV1(domain, options).then((request) => request(axios, basePath));
|
|
4912
4912
|
},
|
|
4913
4913
|
/**
|
|
4914
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4915
|
-
* @summary Run
|
|
4914
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4915
|
+
* @summary Run agent readiness scan
|
|
4916
4916
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4917
4917
|
* @param {*} [options] Override http request option.
|
|
4918
4918
|
* @throws {RequiredError}
|
|
4919
4919
|
*/
|
|
4920
|
-
|
|
4921
|
-
return localVarFp.
|
|
4920
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
4921
|
+
return localVarFp.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
|
|
4922
4922
|
},
|
|
4923
4923
|
};
|
|
4924
4924
|
};
|
|
@@ -4930,26 +4930,26 @@ export const AgentReadinessScansApiFactory = function (configuration, basePath,
|
|
|
4930
4930
|
*/
|
|
4931
4931
|
export class AgentReadinessScansApi extends BaseAPI {
|
|
4932
4932
|
/**
|
|
4933
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4934
|
-
* @summary Get
|
|
4933
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4934
|
+
* @summary Get agent readiness scan
|
|
4935
4935
|
* @param {string} domain Domain name the scan was run for
|
|
4936
4936
|
* @param {*} [options] Override http request option.
|
|
4937
4937
|
* @throws {RequiredError}
|
|
4938
4938
|
* @memberof AgentReadinessScansApi
|
|
4939
4939
|
*/
|
|
4940
|
-
|
|
4941
|
-
return AgentReadinessScansApiFp(this.configuration).
|
|
4940
|
+
getAgentReadinessScanV1(domain, options) {
|
|
4941
|
+
return AgentReadinessScansApiFp(this.configuration).getAgentReadinessScanV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4942
4942
|
}
|
|
4943
4943
|
/**
|
|
4944
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4945
|
-
* @summary Run
|
|
4944
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4945
|
+
* @summary Run agent readiness scan
|
|
4946
4946
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4947
4947
|
* @param {*} [options] Override http request option.
|
|
4948
4948
|
* @throws {RequiredError}
|
|
4949
4949
|
* @memberof AgentReadinessScansApi
|
|
4950
4950
|
*/
|
|
4951
|
-
|
|
4952
|
-
return AgentReadinessScansApiFp(this.configuration).
|
|
4951
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
4952
|
+
return AgentReadinessScansApiFp(this.configuration).runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
4955
|
/**
|
|
@@ -18556,10 +18556,11 @@ export class HostingSSLApi extends BaseAPI {
|
|
|
18556
18556
|
export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
18557
18557
|
return {
|
|
18558
18558
|
/**
|
|
18559
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
18559
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18560
18560
|
* @summary Create website
|
|
18561
18561
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18562
18562
|
* @param {*} [options] Override http request option.
|
|
18563
|
+
* @deprecated
|
|
18563
18564
|
* @throws {RequiredError}
|
|
18564
18565
|
*/
|
|
18565
18566
|
createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [hostingV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (hostingV1WebsitesCreateWebsiteRequest, options = {}) {
|
|
@@ -18758,7 +18759,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18758
18759
|
};
|
|
18759
18760
|
}),
|
|
18760
18761
|
/**
|
|
18761
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
18762
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
18762
18763
|
* @summary Start website setup
|
|
18763
18764
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18764
18765
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -18804,10 +18805,11 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
18804
18805
|
const localVarAxiosParamCreator = HostingWebsitesApiAxiosParamCreator(configuration);
|
|
18805
18806
|
return {
|
|
18806
18807
|
/**
|
|
18807
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
18808
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18808
18809
|
* @summary Create website
|
|
18809
18810
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18810
18811
|
* @param {*} [options] Override http request option.
|
|
18812
|
+
* @deprecated
|
|
18811
18813
|
* @throws {RequiredError}
|
|
18812
18814
|
*/
|
|
18813
18815
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
@@ -18889,7 +18891,7 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
18889
18891
|
});
|
|
18890
18892
|
},
|
|
18891
18893
|
/**
|
|
18892
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
18894
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
18893
18895
|
* @summary Start website setup
|
|
18894
18896
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18895
18897
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -18914,10 +18916,11 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
18914
18916
|
const localVarFp = HostingWebsitesApiFp(configuration);
|
|
18915
18917
|
return {
|
|
18916
18918
|
/**
|
|
18917
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
18919
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18918
18920
|
* @summary Create website
|
|
18919
18921
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18920
18922
|
* @param {*} [options] Override http request option.
|
|
18923
|
+
* @deprecated
|
|
18921
18924
|
* @throws {RequiredError}
|
|
18922
18925
|
*/
|
|
18923
18926
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
@@ -18974,7 +18977,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
18974
18977
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
18975
18978
|
},
|
|
18976
18979
|
/**
|
|
18977
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
18980
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
18978
18981
|
* @summary Start website setup
|
|
18979
18982
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18980
18983
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -18994,10 +18997,11 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
18994
18997
|
*/
|
|
18995
18998
|
export class HostingWebsitesApi extends BaseAPI {
|
|
18996
18999
|
/**
|
|
18997
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
19000
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18998
19001
|
* @summary Create website
|
|
18999
19002
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
19000
19003
|
* @param {*} [options] Override http request option.
|
|
19004
|
+
* @deprecated
|
|
19001
19005
|
* @throws {RequiredError}
|
|
19002
19006
|
* @memberof HostingWebsitesApi
|
|
19003
19007
|
*/
|
|
@@ -19059,7 +19063,7 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
19059
19063
|
return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
19060
19064
|
}
|
|
19061
19065
|
/**
|
|
19062
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
19066
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19063
19067
|
* @summary Start website setup
|
|
19064
19068
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19065
19069
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.68.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.68.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -4,13 +4,13 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
7
|
+
|[**getAgentReadinessScanV1**](#getagentreadinessscanv1) | **GET** /api/agent-readiness/v1/scans/{domain} | Get agent readiness scan|
|
|
8
|
+
|[**runAgentReadinessScanV1**](#runagentreadinessscanv1) | **POST** /api/agent-readiness/v1/scans | Run agent readiness scan|
|
|
9
9
|
|
|
10
|
-
# **
|
|
11
|
-
> AgentReadinessV1ScansScanResource
|
|
10
|
+
# **getAgentReadinessScanV1**
|
|
11
|
+
> AgentReadinessV1ScansScanResource getAgentReadinessScanV1()
|
|
12
12
|
|
|
13
|
-
Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
13
|
+
Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
14
14
|
|
|
15
15
|
### Example
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ const apiInstance = new AgentReadinessScansApi(configuration);
|
|
|
25
25
|
|
|
26
26
|
let domain: string; //Domain name the scan was run for (default to undefined)
|
|
27
27
|
|
|
28
|
-
const { status, data } = await apiInstance.
|
|
28
|
+
const { status, data } = await apiInstance.getAgentReadinessScanV1(
|
|
29
29
|
domain
|
|
30
30
|
);
|
|
31
31
|
```
|
|
@@ -60,10 +60,10 @@ const { status, data } = await apiInstance.getWebsiteScanV1(
|
|
|
60
60
|
|
|
61
61
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
62
62
|
|
|
63
|
-
# **
|
|
64
|
-
> AgentReadinessV1ScansScanResource
|
|
63
|
+
# **runAgentReadinessScanV1**
|
|
64
|
+
> AgentReadinessV1ScansScanResource runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest)
|
|
65
65
|
|
|
66
|
-
Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
66
|
+
Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
67
67
|
|
|
68
68
|
### Example
|
|
69
69
|
|
|
@@ -79,7 +79,7 @@ const apiInstance = new AgentReadinessScansApi(configuration);
|
|
|
79
79
|
|
|
80
80
|
let agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest; //
|
|
81
81
|
|
|
82
|
-
const { status, data } = await apiInstance.
|
|
82
|
+
const { status, data } = await apiInstance.runAgentReadinessScanV1(
|
|
83
83
|
agentReadinessV1ScansRunScanRequest
|
|
84
84
|
);
|
|
85
85
|
```
|
|
@@ -7,7 +7,8 @@ Website type, domain and WordPress settings for a new website setup
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**type** | **string** | 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. | [optional] [default to undefined]
|
|
10
|
-
**domain** | **string** | Customer-owned domain. Cannot start with \"www.\". Omit or `null` to set the website up on a generated temporary free subdomain. | [optional] [default to undefined]
|
|
10
|
+
**domain** | **string** | 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. | [optional] [default to undefined]
|
|
11
|
+
**datacenter_code** | **string** | Datacenter for the hosting account when the order does not have one yet. Omit to use the order\'s default datacenter. Ignored when the order already has a hosting account. List available datacenters to find valid codes. | [optional] [default to undefined]
|
|
11
12
|
**wordpress** | [**HostingV1OnboardingsStartOnboardingRequestWordpress**](HostingV1OnboardingsStartOnboardingRequestWordpress.md) | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -18,6 +19,7 @@ import { HostingV1OnboardingsStartOnboardingRequest } from '@hostinger/sdk';
|
|
|
18
19
|
const instance: HostingV1OnboardingsStartOnboardingRequest = {
|
|
19
20
|
type,
|
|
20
21
|
domain,
|
|
22
|
+
datacenter_code,
|
|
21
23
|
wordpress,
|
|
22
24
|
};
|
|
23
25
|
```
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**domain** | **string** | Domain name for the website. Cannot start with \"www.\" | [default to undefined]
|
|
8
|
+
**domain** | **string** | Domain name for the website. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`. | [default to undefined]
|
|
9
9
|
**order_id** | **number** | Hosting order ID to create this website on. Choose the order whose hosting plan should host the new website. List orders to find available IDs. | [default to undefined]
|
|
10
|
-
**datacenter_code** | **string** | Datacenter
|
|
10
|
+
**datacenter_code** | **string** | Datacenter for the hosting account when the order does not have one yet. Omit to use the order\'s default datacenter. Ignored when the order already has a hosting account. Must be an available datacenter; list available datacenters to find valid codes. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -14,7 +14,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
14
14
|
# **createWebsiteV1**
|
|
15
15
|
> CommonSuccessEmptyResource createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest)
|
|
16
16
|
|
|
17
|
-
Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
17
|
+
Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18
18
|
|
|
19
19
|
### Example
|
|
20
20
|
|
|
@@ -62,6 +62,7 @@ const { status, data } = await apiInstance.createWebsiteV1(
|
|
|
62
62
|
|**200** | Success empty response | - |
|
|
63
63
|
|**422** | Validation error response | - |
|
|
64
64
|
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**409** | Conflict response. `Retry-After`, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
|
|
65
66
|
|**500** | Error response | - |
|
|
66
67
|
|
|
67
68
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -315,7 +316,7 @@ const { status, data } = await apiInstance.listWebsitesV1(
|
|
|
315
316
|
# **startWebsiteSetupV1**
|
|
316
317
|
> HostingV1OnboardingsOnboardingResource startWebsiteSetupV1(hostingV1OnboardingsStartOnboardingRequest)
|
|
317
318
|
|
|
318
|
-
Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
319
|
+
Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
319
320
|
|
|
320
321
|
### Example
|
|
321
322
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.68.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|