hostinger-api-sdk 2.0.0 → 2.1.1

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.
Files changed (41) hide show
  1. package/README.md +2 -2
  2. package/api.ts +144 -25
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +143 -25
  7. package/dist/api.js +35 -30
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +143 -25
  15. package/dist/esm/api.js +26 -21
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceProductVariantsApi.md +1 -1
  27. package/docs/EcommerceProductsApi.md +1 -1
  28. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +2 -0
  29. package/docs/EcommerceV1ProductCreatePhysicalProductRequestSeoSettings.md +25 -0
  30. package/docs/EcommerceV1ProductUpdateRequest.md +4 -0
  31. package/docs/EcommerceV1ProductUpdateRequestCollectionChanges.md +23 -0
  32. package/docs/EcommerceV1ProductUpdateRequestCollectionChangesAddInner.md +20 -0
  33. package/docs/EcommerceV1ProductUpdateRequestSeoSettings.md +25 -0
  34. package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner.md +2 -0
  35. package/docs/HostingV1OnboardingsOnboardingResource.md +1 -1
  36. package/docs/HostingV1OnboardingsStartOnboardingRequest.md +2 -2
  37. package/docs/HostingWebsitesApi.md +2 -2
  38. package/docs/WordPressInstallationsApi.md +1 -1
  39. package/docs/WordPressV1InstallationsInstallWordPressRequest.md +3 -1
  40. package/index.ts +1 -1
  41. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.0.0
1
+ ## @hostinger/sdk@2.1.1
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.0.0 --save
8
+ npm install @hostinger/sdk@2.1.1 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.1
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
@@ -5424,6 +5424,37 @@ export interface EcommerceV1ProductCreatePhysicalProductRequest {
5424
5424
  * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5425
5425
  */
5426
5426
  'currency': string | null;
5427
+ /**
5428
+ *
5429
+ * @type {EcommerceV1ProductCreatePhysicalProductRequestSeoSettings}
5430
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5431
+ */
5432
+ 'seo_settings': EcommerceV1ProductCreatePhysicalProductRequestSeoSettings;
5433
+ }
5434
+ /**
5435
+ * Search-engine settings. Omitted fields are generated from the name and description; a slug already in use gets a numeric suffix. Send at least one field.
5436
+ * @export
5437
+ * @interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5438
+ */
5439
+ export interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings {
5440
+ /**
5441
+ * Search-engine title for the product page.
5442
+ * @type {string}
5443
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5444
+ */
5445
+ 'title': string;
5446
+ /**
5447
+ * Search-engine description for the product page.
5448
+ * @type {string}
5449
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5450
+ */
5451
+ 'description': string;
5452
+ /**
5453
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5454
+ * @type {string}
5455
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5456
+ */
5457
+ 'slug': string;
5427
5458
  }
5428
5459
  /**
5429
5460
  *
@@ -5835,6 +5866,18 @@ export interface EcommerceV1ProductUpdateRequest {
5835
5866
  * @memberof EcommerceV1ProductUpdateRequest
5836
5867
  */
5837
5868
  'status': EcommerceV1ProductUpdateRequestStatusEnum;
5869
+ /**
5870
+ *
5871
+ * @type {EcommerceV1ProductUpdateRequestSeoSettings}
5872
+ * @memberof EcommerceV1ProductUpdateRequest
5873
+ */
5874
+ 'seo_settings': EcommerceV1ProductUpdateRequestSeoSettings;
5875
+ /**
5876
+ *
5877
+ * @type {EcommerceV1ProductUpdateRequestCollectionChanges}
5878
+ * @memberof EcommerceV1ProductUpdateRequest
5879
+ */
5880
+ 'collection_changes': EcommerceV1ProductUpdateRequestCollectionChanges;
5838
5881
  }
5839
5882
 
5840
5883
  export const EcommerceV1ProductUpdateRequestStatusEnum = {
@@ -5845,6 +5888,63 @@ export const EcommerceV1ProductUpdateRequestStatusEnum = {
5845
5888
 
5846
5889
  export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1ProductUpdateRequestStatusEnum[keyof typeof EcommerceV1ProductUpdateRequestStatusEnum];
5847
5890
 
5891
+ /**
5892
+ * Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
5893
+ * @export
5894
+ * @interface EcommerceV1ProductUpdateRequestCollectionChanges
5895
+ */
5896
+ export interface EcommerceV1ProductUpdateRequestCollectionChanges {
5897
+ /**
5898
+ * Collections to add the product to. Every id must exist in the store.
5899
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5900
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5901
+ */
5902
+ 'add': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5903
+ /**
5904
+ * Collections to take the product out of. Ids the product is not in are ignored.
5905
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5906
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5907
+ */
5908
+ 'remove': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5909
+ }
5910
+ /**
5911
+ *
5912
+ * @export
5913
+ * @interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5914
+ */
5915
+ export interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner {
5916
+ /**
5917
+ * The collection id.
5918
+ * @type {string}
5919
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5920
+ */
5921
+ 'id': string;
5922
+ }
5923
+ /**
5924
+ * Search-engine settings to change. Send at least one field; omitted fields keep their current values.
5925
+ * @export
5926
+ * @interface EcommerceV1ProductUpdateRequestSeoSettings
5927
+ */
5928
+ export interface EcommerceV1ProductUpdateRequestSeoSettings {
5929
+ /**
5930
+ * Search-engine title for the product page.
5931
+ * @type {string}
5932
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5933
+ */
5934
+ 'title': string;
5935
+ /**
5936
+ * Search-engine description for the product page.
5937
+ * @type {string}
5938
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5939
+ */
5940
+ 'description': string;
5941
+ /**
5942
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5943
+ * @type {string}
5944
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5945
+ */
5946
+ 'slug': string;
5947
+ }
5848
5948
  /**
5849
5949
  *
5850
5950
  * @export
@@ -6506,6 +6606,12 @@ export interface EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner {
6506
6606
  * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6507
6607
  */
6508
6608
  'title': string;
6609
+ /**
6610
+ * The variant SKU.
6611
+ * @type {string}
6612
+ * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6613
+ */
6614
+ 'sku': string;
6509
6615
  /**
6510
6616
  * Units in stock.
6511
6617
  * @type {number}
@@ -9447,7 +9553,7 @@ export interface HostingV1OnboardingsOnboardingResource {
9447
9553
  */
9448
9554
  'username': string;
9449
9555
  /**
9450
- * Website type requested for the setup: `wordpress`, `headless_wordpress`, `headless_ecommerce` or `headless_pocketbase`. `null` for an empty website. Setups started outside this API may report other legacy types.
9556
+ * Website type requested for the setup: `wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce` or `headless_pocketbase`. `null` for an empty website. Setups started outside this API may report other legacy types.
9451
9557
  * @type {string}
9452
9558
  * @memberof HostingV1OnboardingsOnboardingResource
9453
9559
  */
@@ -9487,13 +9593,13 @@ export type HostingV1OnboardingsOnboardingResourceStatusEnum = typeof HostingV1O
9487
9593
  */
9488
9594
  export interface HostingV1OnboardingsStartOnboardingRequest {
9489
9595
  /**
9490
- * 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.
9596
+ * 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`.
9491
9597
  * @type {string}
9492
9598
  * @memberof HostingV1OnboardingsStartOnboardingRequest
9493
9599
  */
9494
9600
  'type': HostingV1OnboardingsStartOnboardingRequestTypeEnum | null;
9495
9601
  /**
9496
- * 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.
9602
+ * 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.
9497
9603
  * @type {string}
9498
9604
  * @memberof HostingV1OnboardingsStartOnboardingRequest
9499
9605
  */
@@ -9514,6 +9620,7 @@ export interface HostingV1OnboardingsStartOnboardingRequest {
9514
9620
 
9515
9621
  export const HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
9516
9622
  Wordpress: 'wordpress',
9623
+ HeadlessEmpty: 'headless_empty',
9517
9624
  HeadlessWordpress: 'headless_wordpress',
9518
9625
  HeadlessEcommerce: 'headless_ecommerce',
9519
9626
  HeadlessPocketbase: 'headless_pocketbase'
@@ -17374,7 +17481,13 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
17374
17481
  */
17375
17482
  'language': string | null;
17376
17483
  /**
17377
- * Relative directory to install WordPress into. Defaults to the website root when omitted.
17484
+ * 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.
17485
+ * @type {string}
17486
+ * @memberof WordPressV1InstallationsInstallWordPressRequest
17487
+ */
17488
+ 'type': WordPressV1InstallationsInstallWordPressRequestTypeEnum | null;
17489
+ /**
17490
+ * Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`.
17378
17491
  * @type {string}
17379
17492
  * @memberof WordPressV1InstallationsInstallWordPressRequest
17380
17493
  */
@@ -17411,6 +17524,12 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
17411
17524
  'database': WordPressV1InstallationsInstallWordPressRequestDatabase | null;
17412
17525
  }
17413
17526
 
17527
+ export const WordPressV1InstallationsInstallWordPressRequestTypeEnum = {
17528
+ Default: 'default',
17529
+ Headless: 'headless'
17530
+ } as const;
17531
+
17532
+ export type WordPressV1InstallationsInstallWordPressRequestTypeEnum = typeof WordPressV1InstallationsInstallWordPressRequestTypeEnum[keyof typeof WordPressV1InstallationsInstallWordPressRequestTypeEnum];
17414
17533
  export const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
17415
17534
  All: 'all',
17416
17535
  None: 'none',
@@ -28591,7 +28710,7 @@ export const EcommerceProductVariantsApiAxiosParamCreator = function (configurat
28591
28710
  };
28592
28711
  },
28593
28712
  /**
28594
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28713
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28595
28714
  * @summary Update product variants in batch
28596
28715
  * @param {string} storeId The ID of the store that owns the product.
28597
28716
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28691,7 +28810,7 @@ export const EcommerceProductVariantsApiFp = function(configuration?: Configurat
28691
28810
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28692
28811
  },
28693
28812
  /**
28694
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28813
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28695
28814
  * @summary Update product variants in batch
28696
28815
  * @param {string} storeId The ID of the store that owns the product.
28697
28816
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28751,7 +28870,7 @@ export const EcommerceProductVariantsApiFactory = function (configuration?: Conf
28751
28870
  return localVarFp.listProductVariantsV1(storeId, productId, page, options).then((request) => request(axios, basePath));
28752
28871
  },
28753
28872
  /**
28754
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28873
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28755
28874
  * @summary Update product variants in batch
28756
28875
  * @param {string} storeId The ID of the store that owns the product.
28757
28876
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28815,7 +28934,7 @@ export class EcommerceProductVariantsApi extends BaseAPI {
28815
28934
  }
28816
28935
 
28817
28936
  /**
28818
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28937
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28819
28938
  * @summary Update product variants in batch
28820
28939
  * @param {string} storeId The ID of the store that owns the product.
28821
28940
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -29073,7 +29192,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
29073
29192
  };
29074
29193
  },
29075
29194
  /**
29076
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29195
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29077
29196
  * @summary Update a product
29078
29197
  * @param {string} storeId The ID of the store that owns the product.
29079
29198
  * @param {string} productId The ID of the product to update.
@@ -29248,7 +29367,7 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
29248
29367
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29249
29368
  },
29250
29369
  /**
29251
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29370
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29252
29371
  * @summary Update a product
29253
29372
  * @param {string} storeId The ID of the store that owns the product.
29254
29373
  * @param {string} productId The ID of the product to update.
@@ -29345,7 +29464,7 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
29345
29464
  return localVarFp.listProductsV1(storeId, productIds, status, q, include, page, options).then((request) => request(axios, basePath));
29346
29465
  },
29347
29466
  /**
29348
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29467
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29349
29468
  * @summary Update a product
29350
29469
  * @param {string} storeId The ID of the store that owns the product.
29351
29470
  * @param {string} productId The ID of the product to update.
@@ -29448,7 +29567,7 @@ export class EcommerceProductsApi extends BaseAPI {
29448
29567
  }
29449
29568
 
29450
29569
  /**
29451
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29570
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29452
29571
  * @summary Update a product
29453
29572
  * @param {string} storeId The ID of the store that owns the product.
29454
29573
  * @param {string} productId The ID of the product to update.
@@ -37187,7 +37306,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
37187
37306
  };
37188
37307
  },
37189
37308
  /**
37190
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37309
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37191
37310
  * @summary List website setups
37192
37311
  * @param {number | null} [orderId] Order ID
37193
37312
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -37305,7 +37424,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
37305
37424
  };
37306
37425
  },
37307
37426
  /**
37308
- * 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.
37427
+ * 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 (`hosting_websites_list-setups`) 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_empty`, `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. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. 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.
37309
37428
  * @summary Start website setup
37310
37429
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37311
37430
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37398,7 +37517,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37398
37517
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37399
37518
  },
37400
37519
  /**
37401
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37520
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37402
37521
  * @summary List website setups
37403
37522
  * @param {number | null} [orderId] Order ID
37404
37523
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -37430,7 +37549,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37430
37549
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37431
37550
  },
37432
37551
  /**
37433
- * 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.
37552
+ * 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 (`hosting_websites_list-setups`) 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_empty`, `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. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. 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.
37434
37553
  * @summary Start website setup
37435
37554
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37436
37555
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37486,7 +37605,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37486
37605
  return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
37487
37606
  },
37488
37607
  /**
37489
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37608
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37490
37609
  * @summary List website setups
37491
37610
  * @param {number | null} [orderId] Order ID
37492
37611
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -37514,7 +37633,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37514
37633
  return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
37515
37634
  },
37516
37635
  /**
37517
- * 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.
37636
+ * 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 (`hosting_websites_list-setups`) 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_empty`, `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. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. 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.
37518
37637
  * @summary Start website setup
37519
37638
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37520
37639
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37574,7 +37693,7 @@ export class HostingWebsitesApi extends BaseAPI {
37574
37693
  }
37575
37694
 
37576
37695
  /**
37577
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37696
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
37578
37697
  * @summary List website setups
37579
37698
  * @param {number | null} [orderId] Order ID
37580
37699
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -37606,7 +37725,7 @@ export class HostingWebsitesApi extends BaseAPI {
37606
37725
  }
37607
37726
 
37608
37727
  /**
37609
- * 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.
37728
+ * 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 (`hosting_websites_list-setups`) 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_empty`, `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. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. 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.
37610
37729
  * @summary Start website setup
37611
37730
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37612
37731
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -52835,7 +52954,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
52835
52954
  };
52836
52955
  },
52837
52956
  /**
52838
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
52957
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
52839
52958
  * @summary Install WordPress
52840
52959
  * @param {string} username
52841
52960
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -53136,7 +53255,7 @@ export const WordPressInstallationsApiFp = function(configuration?: Configuratio
53136
53255
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
53137
53256
  },
53138
53257
  /**
53139
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53258
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53140
53259
  * @summary Install WordPress
53141
53260
  * @param {string} username
53142
53261
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -53269,7 +53388,7 @@ export const WordPressInstallationsApiFactory = function (configuration?: Config
53269
53388
  return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
53270
53389
  },
53271
53390
  /**
53272
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53391
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53273
53392
  * @summary Install WordPress
53274
53393
  * @param {string} username
53275
53394
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -53402,7 +53521,7 @@ export class WordPressInstallationsApi extends BaseAPI {
53402
53521
  }
53403
53522
 
53404
53523
  /**
53405
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53524
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
53406
53525
  * @summary Install WordPress
53407
53526
  * @param {string} username
53408
53527
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.1
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/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.1
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/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.1
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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.0.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.1.1",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };