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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.0.0
4
+ * API Version: 2.1.1
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
@@ -5306,6 +5306,37 @@ export interface EcommerceV1ProductCreatePhysicalProductRequest {
5306
5306
  * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5307
5307
  */
5308
5308
  'currency': string | null;
5309
+ /**
5310
+ *
5311
+ * @type {EcommerceV1ProductCreatePhysicalProductRequestSeoSettings}
5312
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5313
+ */
5314
+ 'seo_settings': EcommerceV1ProductCreatePhysicalProductRequestSeoSettings;
5315
+ }
5316
+ /**
5317
+ * 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.
5318
+ * @export
5319
+ * @interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5320
+ */
5321
+ export interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings {
5322
+ /**
5323
+ * Search-engine title for the product page.
5324
+ * @type {string}
5325
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5326
+ */
5327
+ 'title': string;
5328
+ /**
5329
+ * Search-engine description for the product page.
5330
+ * @type {string}
5331
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5332
+ */
5333
+ 'description': string;
5334
+ /**
5335
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5336
+ * @type {string}
5337
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5338
+ */
5339
+ 'slug': string;
5309
5340
  }
5310
5341
  /**
5311
5342
  *
@@ -5713,6 +5744,18 @@ export interface EcommerceV1ProductUpdateRequest {
5713
5744
  * @memberof EcommerceV1ProductUpdateRequest
5714
5745
  */
5715
5746
  'status': EcommerceV1ProductUpdateRequestStatusEnum;
5747
+ /**
5748
+ *
5749
+ * @type {EcommerceV1ProductUpdateRequestSeoSettings}
5750
+ * @memberof EcommerceV1ProductUpdateRequest
5751
+ */
5752
+ 'seo_settings': EcommerceV1ProductUpdateRequestSeoSettings;
5753
+ /**
5754
+ *
5755
+ * @type {EcommerceV1ProductUpdateRequestCollectionChanges}
5756
+ * @memberof EcommerceV1ProductUpdateRequest
5757
+ */
5758
+ 'collection_changes': EcommerceV1ProductUpdateRequestCollectionChanges;
5716
5759
  }
5717
5760
  export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
5718
5761
  readonly Draft: "draft";
@@ -5720,6 +5763,63 @@ export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
5720
5763
  readonly Archived: "archived";
5721
5764
  };
5722
5765
  export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1ProductUpdateRequestStatusEnum[keyof typeof EcommerceV1ProductUpdateRequestStatusEnum];
5766
+ /**
5767
+ * Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
5768
+ * @export
5769
+ * @interface EcommerceV1ProductUpdateRequestCollectionChanges
5770
+ */
5771
+ export interface EcommerceV1ProductUpdateRequestCollectionChanges {
5772
+ /**
5773
+ * Collections to add the product to. Every id must exist in the store.
5774
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5775
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5776
+ */
5777
+ 'add': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5778
+ /**
5779
+ * Collections to take the product out of. Ids the product is not in are ignored.
5780
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5781
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5782
+ */
5783
+ 'remove': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5784
+ }
5785
+ /**
5786
+ *
5787
+ * @export
5788
+ * @interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5789
+ */
5790
+ export interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner {
5791
+ /**
5792
+ * The collection id.
5793
+ * @type {string}
5794
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5795
+ */
5796
+ 'id': string;
5797
+ }
5798
+ /**
5799
+ * Search-engine settings to change. Send at least one field; omitted fields keep their current values.
5800
+ * @export
5801
+ * @interface EcommerceV1ProductUpdateRequestSeoSettings
5802
+ */
5803
+ export interface EcommerceV1ProductUpdateRequestSeoSettings {
5804
+ /**
5805
+ * Search-engine title for the product page.
5806
+ * @type {string}
5807
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5808
+ */
5809
+ 'title': string;
5810
+ /**
5811
+ * Search-engine description for the product page.
5812
+ * @type {string}
5813
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5814
+ */
5815
+ 'description': string;
5816
+ /**
5817
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5818
+ * @type {string}
5819
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5820
+ */
5821
+ 'slug': string;
5822
+ }
5723
5823
  /**
5724
5824
  *
5725
5825
  * @export
@@ -6366,6 +6466,12 @@ export interface EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner {
6366
6466
  * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6367
6467
  */
6368
6468
  'title': string;
6469
+ /**
6470
+ * The variant SKU.
6471
+ * @type {string}
6472
+ * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6473
+ */
6474
+ 'sku': string;
6369
6475
  /**
6370
6476
  * Units in stock.
6371
6477
  * @type {number}
@@ -9240,7 +9346,7 @@ export interface HostingV1OnboardingsOnboardingResource {
9240
9346
  */
9241
9347
  'username': string;
9242
9348
  /**
9243
- * 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.
9349
+ * 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.
9244
9350
  * @type {string}
9245
9351
  * @memberof HostingV1OnboardingsOnboardingResource
9246
9352
  */
@@ -9277,13 +9383,13 @@ export type HostingV1OnboardingsOnboardingResourceStatusEnum = typeof HostingV1O
9277
9383
  */
9278
9384
  export interface HostingV1OnboardingsStartOnboardingRequest {
9279
9385
  /**
9280
- * 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.
9386
+ * 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`.
9281
9387
  * @type {string}
9282
9388
  * @memberof HostingV1OnboardingsStartOnboardingRequest
9283
9389
  */
9284
9390
  'type': HostingV1OnboardingsStartOnboardingRequestTypeEnum | null;
9285
9391
  /**
9286
- * 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.
9392
+ * 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.
9287
9393
  * @type {string}
9288
9394
  * @memberof HostingV1OnboardingsStartOnboardingRequest
9289
9395
  */
@@ -9303,6 +9409,7 @@ export interface HostingV1OnboardingsStartOnboardingRequest {
9303
9409
  }
9304
9410
  export declare const HostingV1OnboardingsStartOnboardingRequestTypeEnum: {
9305
9411
  readonly Wordpress: "wordpress";
9412
+ readonly HeadlessEmpty: "headless_empty";
9306
9413
  readonly HeadlessWordpress: "headless_wordpress";
9307
9414
  readonly HeadlessEcommerce: "headless_ecommerce";
9308
9415
  readonly HeadlessPocketbase: "headless_pocketbase";
@@ -16993,7 +17100,13 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
16993
17100
  */
16994
17101
  'language': string | null;
16995
17102
  /**
16996
- * Relative directory to install WordPress into. Defaults to the website root when omitted.
17103
+ * 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.
17104
+ * @type {string}
17105
+ * @memberof WordPressV1InstallationsInstallWordPressRequest
17106
+ */
17107
+ 'type': WordPressV1InstallationsInstallWordPressRequestTypeEnum | null;
17108
+ /**
17109
+ * Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`.
16997
17110
  * @type {string}
16998
17111
  * @memberof WordPressV1InstallationsInstallWordPressRequest
16999
17112
  */
@@ -17029,6 +17142,11 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
17029
17142
  */
17030
17143
  'database': WordPressV1InstallationsInstallWordPressRequestDatabase | null;
17031
17144
  }
17145
+ export declare const WordPressV1InstallationsInstallWordPressRequestTypeEnum: {
17146
+ readonly Default: "default";
17147
+ readonly Headless: "headless";
17148
+ };
17149
+ export type WordPressV1InstallationsInstallWordPressRequestTypeEnum = typeof WordPressV1InstallationsInstallWordPressRequestTypeEnum[keyof typeof WordPressV1InstallationsInstallWordPressRequestTypeEnum];
17032
17150
  export declare const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum: {
17033
17151
  readonly All: "all";
17034
17152
  readonly None: "none";
@@ -22980,7 +23098,7 @@ export declare const EcommerceProductVariantsApiAxiosParamCreator: (configuratio
22980
23098
  */
22981
23099
  listProductVariantsV1: (storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22982
23100
  /**
22983
- * 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.
23101
+ * 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.
22984
23102
  * @summary Update product variants in batch
22985
23103
  * @param {string} storeId The ID of the store that owns the product.
22986
23104
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23026,7 +23144,7 @@ export declare const EcommerceProductVariantsApiFp: (configuration?: Configurati
23026
23144
  */
23027
23145
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductVariantsV1200Response>>;
23028
23146
  /**
23029
- * 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.
23147
+ * 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.
23030
23148
  * @summary Update product variants in batch
23031
23149
  * @param {string} storeId The ID of the store that owns the product.
23032
23150
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23072,7 +23190,7 @@ export declare const EcommerceProductVariantsApiFactory: (configuration?: Config
23072
23190
  */
23073
23191
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductVariantsV1200Response>;
23074
23192
  /**
23075
- * 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.
23193
+ * 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.
23076
23194
  * @summary Update product variants in batch
23077
23195
  * @param {string} storeId The ID of the store that owns the product.
23078
23196
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23123,7 +23241,7 @@ export declare class EcommerceProductVariantsApi extends BaseAPI {
23123
23241
  */
23124
23242
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductVariantsV1200Response, any, {}, any>>;
23125
23243
  /**
23126
- * 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.
23244
+ * 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.
23127
23245
  * @summary Update product variants in batch
23128
23246
  * @param {string} storeId The ID of the store that owns the product.
23129
23247
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23189,7 +23307,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
23189
23307
  */
23190
23308
  listProductsV1: (storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23191
23309
  /**
23192
- * 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.
23310
+ * 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.
23193
23311
  * @summary Update a product
23194
23312
  * @param {string} storeId The ID of the store that owns the product.
23195
23313
  * @param {string} productId The ID of the product to update.
@@ -23264,7 +23382,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
23264
23382
  */
23265
23383
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductsV1200Response>>;
23266
23384
  /**
23267
- * 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.
23385
+ * 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.
23268
23386
  * @summary Update a product
23269
23387
  * @param {string} storeId The ID of the store that owns the product.
23270
23388
  * @param {string} productId The ID of the product to update.
@@ -23339,7 +23457,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
23339
23457
  */
23340
23458
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductsV1200Response>;
23341
23459
  /**
23342
- * 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.
23460
+ * 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.
23343
23461
  * @summary Update a product
23344
23462
  * @param {string} storeId The ID of the store that owns the product.
23345
23463
  * @param {string} productId The ID of the product to update.
@@ -23421,7 +23539,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
23421
23539
  */
23422
23540
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductsV1200Response, any, {}, any>>;
23423
23541
  /**
23424
- * 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.
23542
+ * 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.
23425
23543
  * @summary Update a product
23426
23544
  * @param {string} storeId The ID of the store that owns the product.
23427
23545
  * @param {string} productId The ID of the product to update.
@@ -27184,7 +27302,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
27184
27302
  */
27185
27303
  deployStaticSiteArchiveV1: (username: string, domain: string, hostingV1WebsitesDeployArchiveRequest: HostingV1WebsitesDeployArchiveRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27186
27304
  /**
27187
- * 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.
27305
+ * 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.
27188
27306
  * @summary List website setups
27189
27307
  * @param {number | null} [orderId] Order ID
27190
27308
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -27208,7 +27326,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
27208
27326
  */
27209
27327
  listWebsitesV1: (page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27210
27328
  /**
27211
- * 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.
27329
+ * 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.
27212
27330
  * @summary Start website setup
27213
27331
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27214
27332
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27250,7 +27368,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
27250
27368
  */
27251
27369
  deployStaticSiteArchiveV1(username: string, domain: string, hostingV1WebsitesDeployArchiveRequest: HostingV1WebsitesDeployArchiveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
27252
27370
  /**
27253
- * 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.
27371
+ * 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.
27254
27372
  * @summary List website setups
27255
27373
  * @param {number | null} [orderId] Order ID
27256
27374
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -27274,7 +27392,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
27274
27392
  */
27275
27393
  listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListWebsitesV1200Response>>;
27276
27394
  /**
27277
- * 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.
27395
+ * 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.
27278
27396
  * @summary Start website setup
27279
27397
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27280
27398
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27316,7 +27434,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
27316
27434
  */
27317
27435
  deployStaticSiteArchiveV1(username: string, domain: string, hostingV1WebsitesDeployArchiveRequest: HostingV1WebsitesDeployArchiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
27318
27436
  /**
27319
- * 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.
27437
+ * 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.
27320
27438
  * @summary List website setups
27321
27439
  * @param {number | null} [orderId] Order ID
27322
27440
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -27340,7 +27458,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
27340
27458
  */
27341
27459
  listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListWebsitesV1200Response>;
27342
27460
  /**
27343
- * 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.
27461
+ * 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.
27344
27462
  * @summary Start website setup
27345
27463
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27346
27464
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27387,7 +27505,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
27387
27505
  */
27388
27506
  deployStaticSiteArchiveV1(username: string, domain: string, hostingV1WebsitesDeployArchiveRequest: HostingV1WebsitesDeployArchiveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
27389
27507
  /**
27390
- * 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.
27508
+ * 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.
27391
27509
  * @summary List website setups
27392
27510
  * @param {number | null} [orderId] Order ID
27393
27511
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -27413,7 +27531,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
27413
27531
  */
27414
27532
  listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListWebsitesV1200Response, any, {}, any>>;
27415
27533
  /**
27416
- * 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.
27534
+ * 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.
27417
27535
  * @summary Start website setup
27418
27536
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27419
27537
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -34786,7 +34904,7 @@ export declare const WordPressInstallationsApiAxiosParamCreator: (configuration?
34786
34904
  */
34787
34905
  importWordPressWebsiteV1: (username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34788
34906
  /**
34789
- * 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.
34907
+ * 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.
34790
34908
  * @summary Install WordPress
34791
34909
  * @param {string} username
34792
34910
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -34885,7 +35003,7 @@ export declare const WordPressInstallationsApiFp: (configuration?: Configuration
34885
35003
  */
34886
35004
  importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
34887
35005
  /**
34888
- * 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.
35006
+ * 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.
34889
35007
  * @summary Install WordPress
34890
35008
  * @param {string} username
34891
35009
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -34984,7 +35102,7 @@ export declare const WordPressInstallationsApiFactory: (configuration?: Configur
34984
35102
  */
34985
35103
  importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
34986
35104
  /**
34987
- * 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.
35105
+ * 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.
34988
35106
  * @summary Install WordPress
34989
35107
  * @param {string} username
34990
35108
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -35090,7 +35208,7 @@ export declare class WordPressInstallationsApi extends BaseAPI {
35090
35208
  */
35091
35209
  importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
35092
35210
  /**
35093
- * 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.
35211
+ * 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.
35094
35212
  * @summary Install WordPress
35095
35213
  * @param {string} username
35096
35214
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest