hostinger-api-sdk 2.13.1 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +58 -35
- package/README.md +2 -2
- package/api.ts +716 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +481 -11
- package/dist/api.js +469 -21
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +481 -11
- package/dist/esm/api.js +453 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingPocketBaseApi.md +311 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +1 -1
- package/docs/HostingV1PocketBaseBackendCreatedResource.md +36 -0
- package/docs/HostingV1PocketBaseBackendResource.md +32 -0
- package/docs/HostingV1PocketBaseCreateBackendRequest.md +22 -0
- package/docs/HostingV1PocketBaseInstanceResource.md +32 -0
- package/docs/HostingV1PocketBaseSuperuserResource.md +24 -0
- package/docs/HostingV1PocketBaseUpdateSuperuserRequest.md +22 -0
- package/docs/HostingWebsitesApi.md +1 -1
- package/docs/WordPressInstallationsApi.md +1 -1
- package/docs/WordPressV1InstallationsInstallWordPressRequest.md +1 -1
- package/index.ts +1 -1
- 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.
|
|
4
|
+
* API Version: 2.14.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -9805,7 +9805,7 @@ export type HostingV1OnboardingsOnboardingResourceStatusEnum = typeof HostingV1O
|
|
|
9805
9805
|
*/
|
|
9806
9806
|
export interface HostingV1OnboardingsStartOnboardingRequest {
|
|
9807
9807
|
/**
|
|
9808
|
-
* 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
|
|
9808
|
+
* 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_pocketbase` only marks the website as a headless PocketBase website: create the backend afterwards with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`). `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`, or a PocketBase backend through the PocketBase endpoint.
|
|
9809
9809
|
* @type {string}
|
|
9810
9810
|
* @memberof HostingV1OnboardingsStartOnboardingRequest
|
|
9811
9811
|
*/
|
|
@@ -10115,6 +10115,261 @@ export interface HostingV1PhpUpdatePhpVersionRequest {
|
|
|
10115
10115
|
*/
|
|
10116
10116
|
'version': string;
|
|
10117
10117
|
}
|
|
10118
|
+
/**
|
|
10119
|
+
*
|
|
10120
|
+
* @export
|
|
10121
|
+
* @interface HostingV1PocketBaseBackendCreatedResource
|
|
10122
|
+
*/
|
|
10123
|
+
export interface HostingV1PocketBaseBackendCreatedResource {
|
|
10124
|
+
/**
|
|
10125
|
+
* PocketBase instance ID
|
|
10126
|
+
* @type {string}
|
|
10127
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10128
|
+
*/
|
|
10129
|
+
'instance_id': string;
|
|
10130
|
+
/**
|
|
10131
|
+
* Website domain that serves the PocketBase API
|
|
10132
|
+
* @type {string}
|
|
10133
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10134
|
+
*/
|
|
10135
|
+
'domain': string;
|
|
10136
|
+
/**
|
|
10137
|
+
* Base URL of the PocketBase REST API
|
|
10138
|
+
* @type {string}
|
|
10139
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10140
|
+
*/
|
|
10141
|
+
'api_url': string;
|
|
10142
|
+
/**
|
|
10143
|
+
* URL of the PocketBase dashboard
|
|
10144
|
+
* @type {string}
|
|
10145
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10146
|
+
*/
|
|
10147
|
+
'admin_url': string;
|
|
10148
|
+
/**
|
|
10149
|
+
* Email of the superuser set up when the backend was created
|
|
10150
|
+
* @type {string}
|
|
10151
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10152
|
+
*/
|
|
10153
|
+
'superuser_email': string | null;
|
|
10154
|
+
/**
|
|
10155
|
+
* Password of that superuser, generated when the request had none. Returned only here: Hostinger does not store it, so save it right away.
|
|
10156
|
+
* @type {string}
|
|
10157
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10158
|
+
*/
|
|
10159
|
+
'superuser_password': string | null;
|
|
10160
|
+
/**
|
|
10161
|
+
* Live process state. The instance sleeps when idle and wakes on the first request. Usually null right after creation.
|
|
10162
|
+
* @type {string}
|
|
10163
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10164
|
+
*/
|
|
10165
|
+
'state': HostingV1PocketBaseBackendCreatedResourceStateEnum | null;
|
|
10166
|
+
/**
|
|
10167
|
+
* PocketBase version
|
|
10168
|
+
* @type {string}
|
|
10169
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10170
|
+
*/
|
|
10171
|
+
'version': string | null;
|
|
10172
|
+
/**
|
|
10173
|
+
* What to do next with this backend
|
|
10174
|
+
* @type {Array<string>}
|
|
10175
|
+
* @memberof HostingV1PocketBaseBackendCreatedResource
|
|
10176
|
+
*/
|
|
10177
|
+
'next_steps': Array<string>;
|
|
10178
|
+
}
|
|
10179
|
+
export declare const HostingV1PocketBaseBackendCreatedResourceStateEnum: {
|
|
10180
|
+
readonly Asleep: "asleep";
|
|
10181
|
+
readonly Starting: "starting";
|
|
10182
|
+
readonly Running: "running";
|
|
10183
|
+
readonly Stopping: "stopping";
|
|
10184
|
+
readonly Failed: "failed";
|
|
10185
|
+
readonly Unregistered: "unregistered";
|
|
10186
|
+
readonly Unknown: "unknown";
|
|
10187
|
+
readonly Missing: "missing";
|
|
10188
|
+
};
|
|
10189
|
+
export type HostingV1PocketBaseBackendCreatedResourceStateEnum = typeof HostingV1PocketBaseBackendCreatedResourceStateEnum[keyof typeof HostingV1PocketBaseBackendCreatedResourceStateEnum];
|
|
10190
|
+
/**
|
|
10191
|
+
*
|
|
10192
|
+
* @export
|
|
10193
|
+
* @interface HostingV1PocketBaseBackendResource
|
|
10194
|
+
*/
|
|
10195
|
+
export interface HostingV1PocketBaseBackendResource {
|
|
10196
|
+
/**
|
|
10197
|
+
* PocketBase instance ID
|
|
10198
|
+
* @type {string}
|
|
10199
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10200
|
+
*/
|
|
10201
|
+
'instance_id': string;
|
|
10202
|
+
/**
|
|
10203
|
+
* Website domain that serves the PocketBase API
|
|
10204
|
+
* @type {string}
|
|
10205
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10206
|
+
*/
|
|
10207
|
+
'domain': string;
|
|
10208
|
+
/**
|
|
10209
|
+
* Base URL of the PocketBase REST API
|
|
10210
|
+
* @type {string}
|
|
10211
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10212
|
+
*/
|
|
10213
|
+
'api_url': string;
|
|
10214
|
+
/**
|
|
10215
|
+
* URL of the PocketBase dashboard
|
|
10216
|
+
* @type {string}
|
|
10217
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10218
|
+
*/
|
|
10219
|
+
'admin_url': string;
|
|
10220
|
+
/**
|
|
10221
|
+
* Live process state. The instance sleeps when idle and wakes on the first request. Null when the server could not be reached.
|
|
10222
|
+
* @type {string}
|
|
10223
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10224
|
+
*/
|
|
10225
|
+
'state': HostingV1PocketBaseBackendResourceStateEnum | null;
|
|
10226
|
+
/**
|
|
10227
|
+
* PocketBase version
|
|
10228
|
+
* @type {string}
|
|
10229
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10230
|
+
*/
|
|
10231
|
+
'version': string | null;
|
|
10232
|
+
/**
|
|
10233
|
+
* What to do next with this backend
|
|
10234
|
+
* @type {Array<string>}
|
|
10235
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10236
|
+
*/
|
|
10237
|
+
'next_steps': Array<string>;
|
|
10238
|
+
}
|
|
10239
|
+
export declare const HostingV1PocketBaseBackendResourceStateEnum: {
|
|
10240
|
+
readonly Asleep: "asleep";
|
|
10241
|
+
readonly Starting: "starting";
|
|
10242
|
+
readonly Running: "running";
|
|
10243
|
+
readonly Stopping: "stopping";
|
|
10244
|
+
readonly Failed: "failed";
|
|
10245
|
+
readonly Unregistered: "unregistered";
|
|
10246
|
+
readonly Unknown: "unknown";
|
|
10247
|
+
readonly Missing: "missing";
|
|
10248
|
+
};
|
|
10249
|
+
export type HostingV1PocketBaseBackendResourceStateEnum = typeof HostingV1PocketBaseBackendResourceStateEnum[keyof typeof HostingV1PocketBaseBackendResourceStateEnum];
|
|
10250
|
+
/**
|
|
10251
|
+
*
|
|
10252
|
+
* @export
|
|
10253
|
+
* @interface HostingV1PocketBaseCreateBackendRequest
|
|
10254
|
+
*/
|
|
10255
|
+
export interface HostingV1PocketBaseCreateBackendRequest {
|
|
10256
|
+
/**
|
|
10257
|
+
* Email of the PocketBase superuser. Defaults to the email of the website owner.
|
|
10258
|
+
* @type {string}
|
|
10259
|
+
* @memberof HostingV1PocketBaseCreateBackendRequest
|
|
10260
|
+
*/
|
|
10261
|
+
'superuser_email': string | null;
|
|
10262
|
+
/**
|
|
10263
|
+
* Password for the PocketBase superuser, 10-128 characters. Leave it out to have a strong one generated. Either way it is returned once in the response and never stored.
|
|
10264
|
+
* @type {string}
|
|
10265
|
+
* @memberof HostingV1PocketBaseCreateBackendRequest
|
|
10266
|
+
*/
|
|
10267
|
+
'superuser_password': string | null;
|
|
10268
|
+
}
|
|
10269
|
+
/**
|
|
10270
|
+
*
|
|
10271
|
+
* @export
|
|
10272
|
+
* @interface HostingV1PocketBaseInstanceResource
|
|
10273
|
+
*/
|
|
10274
|
+
export interface HostingV1PocketBaseInstanceResource {
|
|
10275
|
+
/**
|
|
10276
|
+
* PocketBase instance ID
|
|
10277
|
+
* @type {string}
|
|
10278
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10279
|
+
*/
|
|
10280
|
+
'instance_id': string;
|
|
10281
|
+
/**
|
|
10282
|
+
* Website domain that serves the PocketBase API
|
|
10283
|
+
* @type {string}
|
|
10284
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10285
|
+
*/
|
|
10286
|
+
'domain': string;
|
|
10287
|
+
/**
|
|
10288
|
+
* Base URL of the PocketBase REST API
|
|
10289
|
+
* @type {string}
|
|
10290
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10291
|
+
*/
|
|
10292
|
+
'api_url': string;
|
|
10293
|
+
/**
|
|
10294
|
+
* URL of the PocketBase dashboard
|
|
10295
|
+
* @type {string}
|
|
10296
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10297
|
+
*/
|
|
10298
|
+
'admin_url': string;
|
|
10299
|
+
/**
|
|
10300
|
+
* Live process state. The instance sleeps when idle and wakes on the first request. Null when the server could not be reached.
|
|
10301
|
+
* @type {string}
|
|
10302
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10303
|
+
*/
|
|
10304
|
+
'state': HostingV1PocketBaseInstanceResourceStateEnum | null;
|
|
10305
|
+
/**
|
|
10306
|
+
* PocketBase version
|
|
10307
|
+
* @type {string}
|
|
10308
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10309
|
+
*/
|
|
10310
|
+
'version': string | null;
|
|
10311
|
+
/**
|
|
10312
|
+
* Disk space used by the instance data, in KB
|
|
10313
|
+
* @type {number}
|
|
10314
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10315
|
+
*/
|
|
10316
|
+
'disk_usage_kb': number | null;
|
|
10317
|
+
}
|
|
10318
|
+
export declare const HostingV1PocketBaseInstanceResourceStateEnum: {
|
|
10319
|
+
readonly Asleep: "asleep";
|
|
10320
|
+
readonly Starting: "starting";
|
|
10321
|
+
readonly Running: "running";
|
|
10322
|
+
readonly Stopping: "stopping";
|
|
10323
|
+
readonly Failed: "failed";
|
|
10324
|
+
readonly Unregistered: "unregistered";
|
|
10325
|
+
readonly Unknown: "unknown";
|
|
10326
|
+
readonly Missing: "missing";
|
|
10327
|
+
};
|
|
10328
|
+
export type HostingV1PocketBaseInstanceResourceStateEnum = typeof HostingV1PocketBaseInstanceResourceStateEnum[keyof typeof HostingV1PocketBaseInstanceResourceStateEnum];
|
|
10329
|
+
/**
|
|
10330
|
+
*
|
|
10331
|
+
* @export
|
|
10332
|
+
* @interface HostingV1PocketBaseSuperuserResource
|
|
10333
|
+
*/
|
|
10334
|
+
export interface HostingV1PocketBaseSuperuserResource {
|
|
10335
|
+
/**
|
|
10336
|
+
* Website domain that serves the PocketBase API
|
|
10337
|
+
* @type {string}
|
|
10338
|
+
* @memberof HostingV1PocketBaseSuperuserResource
|
|
10339
|
+
*/
|
|
10340
|
+
'domain': string;
|
|
10341
|
+
/**
|
|
10342
|
+
* Email of the superuser that was created or got the new password
|
|
10343
|
+
* @type {string}
|
|
10344
|
+
* @memberof HostingV1PocketBaseSuperuserResource
|
|
10345
|
+
*/
|
|
10346
|
+
'superuser_email': string;
|
|
10347
|
+
/**
|
|
10348
|
+
* The new password of that superuser, generated when the request had none. Hostinger does not store it and will not show it again, so save it right away.
|
|
10349
|
+
* @type {string}
|
|
10350
|
+
* @memberof HostingV1PocketBaseSuperuserResource
|
|
10351
|
+
*/
|
|
10352
|
+
'superuser_password': string;
|
|
10353
|
+
}
|
|
10354
|
+
/**
|
|
10355
|
+
*
|
|
10356
|
+
* @export
|
|
10357
|
+
* @interface HostingV1PocketBaseUpdateSuperuserRequest
|
|
10358
|
+
*/
|
|
10359
|
+
export interface HostingV1PocketBaseUpdateSuperuserRequest {
|
|
10360
|
+
/**
|
|
10361
|
+
* Email of the superuser to create or update. Defaults to the email of the website owner.
|
|
10362
|
+
* @type {string}
|
|
10363
|
+
* @memberof HostingV1PocketBaseUpdateSuperuserRequest
|
|
10364
|
+
*/
|
|
10365
|
+
'superuser_email': string | null;
|
|
10366
|
+
/**
|
|
10367
|
+
* New password of the PocketBase superuser, 10-128 characters. Leave it out to have a strong one generated. Either way it is returned once in the response and never stored.
|
|
10368
|
+
* @type {string}
|
|
10369
|
+
* @memberof HostingV1PocketBaseUpdateSuperuserRequest
|
|
10370
|
+
*/
|
|
10371
|
+
'superuser_password': string | null;
|
|
10372
|
+
}
|
|
10118
10373
|
/**
|
|
10119
10374
|
*
|
|
10120
10375
|
* @export
|
|
@@ -17943,7 +18198,7 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
|
|
|
17943
18198
|
*/
|
|
17944
18199
|
'language': string | null;
|
|
17945
18200
|
/**
|
|
17946
|
-
* 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
|
|
18201
|
+
* 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 an empty headless website, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_create`) with `type: headless_empty`; any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422.
|
|
17947
18202
|
* @type {string}
|
|
17948
18203
|
* @memberof WordPressV1InstallationsInstallWordPressRequest
|
|
17949
18204
|
*/
|
|
@@ -28258,6 +28513,221 @@ export declare class HostingPHPApi extends BaseAPI {
|
|
|
28258
28513
|
*/
|
|
28259
28514
|
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
28260
28515
|
}
|
|
28516
|
+
/**
|
|
28517
|
+
* HostingPocketBaseApi - axios parameter creator
|
|
28518
|
+
* @export
|
|
28519
|
+
*/
|
|
28520
|
+
export declare const HostingPocketBaseApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28521
|
+
/**
|
|
28522
|
+
* Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28523
|
+
* @summary Create PocketBase backend
|
|
28524
|
+
* @param {string} username
|
|
28525
|
+
* @param {string} domain Domain name
|
|
28526
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
28527
|
+
* @param {*} [options] Override http request option.
|
|
28528
|
+
* @throws {RequiredError}
|
|
28529
|
+
*/
|
|
28530
|
+
createPocketBaseBackendV1: (username: string, domain: string, hostingV1PocketBaseCreateBackendRequest?: HostingV1PocketBaseCreateBackendRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28531
|
+
/**
|
|
28532
|
+
* Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
|
|
28533
|
+
* @summary Delete PocketBase backend
|
|
28534
|
+
* @param {string} username
|
|
28535
|
+
* @param {string} domain Domain name
|
|
28536
|
+
* @param {*} [options] Override http request option.
|
|
28537
|
+
* @throws {RequiredError}
|
|
28538
|
+
*/
|
|
28539
|
+
deletePocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28540
|
+
/**
|
|
28541
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28542
|
+
* @summary Get PocketBase backend
|
|
28543
|
+
* @param {string} username
|
|
28544
|
+
* @param {string} domain Domain name
|
|
28545
|
+
* @param {*} [options] Override http request option.
|
|
28546
|
+
* @throws {RequiredError}
|
|
28547
|
+
*/
|
|
28548
|
+
getPocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28549
|
+
/**
|
|
28550
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28551
|
+
* @summary List account PocketBase backends
|
|
28552
|
+
* @param {string} username
|
|
28553
|
+
* @param {*} [options] Override http request option.
|
|
28554
|
+
* @throws {RequiredError}
|
|
28555
|
+
*/
|
|
28556
|
+
listAccountPocketBaseBackendsV1: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28557
|
+
/**
|
|
28558
|
+
* Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28559
|
+
* @summary Set PocketBase superuser
|
|
28560
|
+
* @param {string} username
|
|
28561
|
+
* @param {string} domain Domain name
|
|
28562
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
28563
|
+
* @param {*} [options] Override http request option.
|
|
28564
|
+
* @throws {RequiredError}
|
|
28565
|
+
*/
|
|
28566
|
+
setPocketBaseSuperuserV1: (username: string, domain: string, hostingV1PocketBaseUpdateSuperuserRequest?: HostingV1PocketBaseUpdateSuperuserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28567
|
+
};
|
|
28568
|
+
/**
|
|
28569
|
+
* HostingPocketBaseApi - functional programming interface
|
|
28570
|
+
* @export
|
|
28571
|
+
*/
|
|
28572
|
+
export declare const HostingPocketBaseApiFp: (configuration?: Configuration) => {
|
|
28573
|
+
/**
|
|
28574
|
+
* Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28575
|
+
* @summary Create PocketBase backend
|
|
28576
|
+
* @param {string} username
|
|
28577
|
+
* @param {string} domain Domain name
|
|
28578
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
28579
|
+
* @param {*} [options] Override http request option.
|
|
28580
|
+
* @throws {RequiredError}
|
|
28581
|
+
*/
|
|
28582
|
+
createPocketBaseBackendV1(username: string, domain: string, hostingV1PocketBaseCreateBackendRequest?: HostingV1PocketBaseCreateBackendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PocketBaseBackendCreatedResource>>;
|
|
28583
|
+
/**
|
|
28584
|
+
* Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
|
|
28585
|
+
* @summary Delete PocketBase backend
|
|
28586
|
+
* @param {string} username
|
|
28587
|
+
* @param {string} domain Domain name
|
|
28588
|
+
* @param {*} [options] Override http request option.
|
|
28589
|
+
* @throws {RequiredError}
|
|
28590
|
+
*/
|
|
28591
|
+
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
28592
|
+
/**
|
|
28593
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28594
|
+
* @summary Get PocketBase backend
|
|
28595
|
+
* @param {string} username
|
|
28596
|
+
* @param {string} domain Domain name
|
|
28597
|
+
* @param {*} [options] Override http request option.
|
|
28598
|
+
* @throws {RequiredError}
|
|
28599
|
+
*/
|
|
28600
|
+
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PocketBaseBackendResource>>;
|
|
28601
|
+
/**
|
|
28602
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28603
|
+
* @summary List account PocketBase backends
|
|
28604
|
+
* @param {string} username
|
|
28605
|
+
* @param {*} [options] Override http request option.
|
|
28606
|
+
* @throws {RequiredError}
|
|
28607
|
+
*/
|
|
28608
|
+
listAccountPocketBaseBackendsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1PocketBaseInstanceResource>>>;
|
|
28609
|
+
/**
|
|
28610
|
+
* Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28611
|
+
* @summary Set PocketBase superuser
|
|
28612
|
+
* @param {string} username
|
|
28613
|
+
* @param {string} domain Domain name
|
|
28614
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
28615
|
+
* @param {*} [options] Override http request option.
|
|
28616
|
+
* @throws {RequiredError}
|
|
28617
|
+
*/
|
|
28618
|
+
setPocketBaseSuperuserV1(username: string, domain: string, hostingV1PocketBaseUpdateSuperuserRequest?: HostingV1PocketBaseUpdateSuperuserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PocketBaseSuperuserResource>>;
|
|
28619
|
+
};
|
|
28620
|
+
/**
|
|
28621
|
+
* HostingPocketBaseApi - factory interface
|
|
28622
|
+
* @export
|
|
28623
|
+
*/
|
|
28624
|
+
export declare const HostingPocketBaseApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
28625
|
+
/**
|
|
28626
|
+
* Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28627
|
+
* @summary Create PocketBase backend
|
|
28628
|
+
* @param {string} username
|
|
28629
|
+
* @param {string} domain Domain name
|
|
28630
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
28631
|
+
* @param {*} [options] Override http request option.
|
|
28632
|
+
* @throws {RequiredError}
|
|
28633
|
+
*/
|
|
28634
|
+
createPocketBaseBackendV1(username: string, domain: string, hostingV1PocketBaseCreateBackendRequest?: HostingV1PocketBaseCreateBackendRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PocketBaseBackendCreatedResource>;
|
|
28635
|
+
/**
|
|
28636
|
+
* Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
|
|
28637
|
+
* @summary Delete PocketBase backend
|
|
28638
|
+
* @param {string} username
|
|
28639
|
+
* @param {string} domain Domain name
|
|
28640
|
+
* @param {*} [options] Override http request option.
|
|
28641
|
+
* @throws {RequiredError}
|
|
28642
|
+
*/
|
|
28643
|
+
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
28644
|
+
/**
|
|
28645
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28646
|
+
* @summary Get PocketBase backend
|
|
28647
|
+
* @param {string} username
|
|
28648
|
+
* @param {string} domain Domain name
|
|
28649
|
+
* @param {*} [options] Override http request option.
|
|
28650
|
+
* @throws {RequiredError}
|
|
28651
|
+
*/
|
|
28652
|
+
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PocketBaseBackendResource>;
|
|
28653
|
+
/**
|
|
28654
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28655
|
+
* @summary List account PocketBase backends
|
|
28656
|
+
* @param {string} username
|
|
28657
|
+
* @param {*} [options] Override http request option.
|
|
28658
|
+
* @throws {RequiredError}
|
|
28659
|
+
*/
|
|
28660
|
+
listAccountPocketBaseBackendsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1PocketBaseInstanceResource>>;
|
|
28661
|
+
/**
|
|
28662
|
+
* Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28663
|
+
* @summary Set PocketBase superuser
|
|
28664
|
+
* @param {string} username
|
|
28665
|
+
* @param {string} domain Domain name
|
|
28666
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
28667
|
+
* @param {*} [options] Override http request option.
|
|
28668
|
+
* @throws {RequiredError}
|
|
28669
|
+
*/
|
|
28670
|
+
setPocketBaseSuperuserV1(username: string, domain: string, hostingV1PocketBaseUpdateSuperuserRequest?: HostingV1PocketBaseUpdateSuperuserRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PocketBaseSuperuserResource>;
|
|
28671
|
+
};
|
|
28672
|
+
/**
|
|
28673
|
+
* HostingPocketBaseApi - object-oriented interface
|
|
28674
|
+
* @export
|
|
28675
|
+
* @class HostingPocketBaseApi
|
|
28676
|
+
* @extends {BaseAPI}
|
|
28677
|
+
*/
|
|
28678
|
+
export declare class HostingPocketBaseApi extends BaseAPI {
|
|
28679
|
+
/**
|
|
28680
|
+
* Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28681
|
+
* @summary Create PocketBase backend
|
|
28682
|
+
* @param {string} username
|
|
28683
|
+
* @param {string} domain Domain name
|
|
28684
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
28685
|
+
* @param {*} [options] Override http request option.
|
|
28686
|
+
* @throws {RequiredError}
|
|
28687
|
+
* @memberof HostingPocketBaseApi
|
|
28688
|
+
*/
|
|
28689
|
+
createPocketBaseBackendV1(username: string, domain: string, hostingV1PocketBaseCreateBackendRequest?: HostingV1PocketBaseCreateBackendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseBackendCreatedResource, any, {}, any>>;
|
|
28690
|
+
/**
|
|
28691
|
+
* Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
|
|
28692
|
+
* @summary Delete PocketBase backend
|
|
28693
|
+
* @param {string} username
|
|
28694
|
+
* @param {string} domain Domain name
|
|
28695
|
+
* @param {*} [options] Override http request option.
|
|
28696
|
+
* @throws {RequiredError}
|
|
28697
|
+
* @memberof HostingPocketBaseApi
|
|
28698
|
+
*/
|
|
28699
|
+
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
28700
|
+
/**
|
|
28701
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28702
|
+
* @summary Get PocketBase backend
|
|
28703
|
+
* @param {string} username
|
|
28704
|
+
* @param {string} domain Domain name
|
|
28705
|
+
* @param {*} [options] Override http request option.
|
|
28706
|
+
* @throws {RequiredError}
|
|
28707
|
+
* @memberof HostingPocketBaseApi
|
|
28708
|
+
*/
|
|
28709
|
+
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseBackendResource, any, {}, any>>;
|
|
28710
|
+
/**
|
|
28711
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28712
|
+
* @summary List account PocketBase backends
|
|
28713
|
+
* @param {string} username
|
|
28714
|
+
* @param {*} [options] Override http request option.
|
|
28715
|
+
* @throws {RequiredError}
|
|
28716
|
+
* @memberof HostingPocketBaseApi
|
|
28717
|
+
*/
|
|
28718
|
+
listAccountPocketBaseBackendsV1(username: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseInstanceResource[], any, {}, any>>;
|
|
28719
|
+
/**
|
|
28720
|
+
* Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28721
|
+
* @summary Set PocketBase superuser
|
|
28722
|
+
* @param {string} username
|
|
28723
|
+
* @param {string} domain Domain name
|
|
28724
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
28725
|
+
* @param {*} [options] Override http request option.
|
|
28726
|
+
* @throws {RequiredError}
|
|
28727
|
+
* @memberof HostingPocketBaseApi
|
|
28728
|
+
*/
|
|
28729
|
+
setPocketBaseSuperuserV1(username: string, domain: string, hostingV1PocketBaseUpdateSuperuserRequest?: HostingV1PocketBaseUpdateSuperuserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseSuperuserResource, any, {}, any>>;
|
|
28730
|
+
}
|
|
28261
28731
|
/**
|
|
28262
28732
|
* HostingRedirectsApi - axios parameter creator
|
|
28263
28733
|
* @export
|
|
@@ -28646,7 +29116,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
|
|
|
28646
29116
|
*/
|
|
28647
29117
|
listWebsitesV1: (page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28648
29118
|
/**
|
|
28649
|
-
* 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
|
|
29119
|
+
* 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_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` 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.
|
|
28650
29120
|
* @summary Start website setup
|
|
28651
29121
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
28652
29122
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -28712,7 +29182,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
|
28712
29182
|
*/
|
|
28713
29183
|
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>>;
|
|
28714
29184
|
/**
|
|
28715
|
-
* 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
|
|
29185
|
+
* 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_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` 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.
|
|
28716
29186
|
* @summary Start website setup
|
|
28717
29187
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
28718
29188
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -28778,7 +29248,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
|
|
|
28778
29248
|
*/
|
|
28779
29249
|
listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListWebsitesV1200Response>;
|
|
28780
29250
|
/**
|
|
28781
|
-
* 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
|
|
29251
|
+
* 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_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` 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.
|
|
28782
29252
|
* @summary Start website setup
|
|
28783
29253
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
28784
29254
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -28851,7 +29321,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
|
|
|
28851
29321
|
*/
|
|
28852
29322
|
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>>;
|
|
28853
29323
|
/**
|
|
28854
|
-
* 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
|
|
29324
|
+
* 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_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` 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.
|
|
28855
29325
|
* @summary Start website setup
|
|
28856
29326
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
28857
29327
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -36789,7 +37259,7 @@ export declare const WordPressInstallationsApiAxiosParamCreator: (configuration?
|
|
|
36789
37259
|
*/
|
|
36790
37260
|
importWordPressWebsiteV1: (username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36791
37261
|
/**
|
|
36792
|
-
* 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_create`) 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_create` 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
|
|
37262
|
+
* 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_create`) 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_create` 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 be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. 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.
|
|
36793
37263
|
* @summary Install WordPress
|
|
36794
37264
|
* @param {string} username
|
|
36795
37265
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -36888,7 +37358,7 @@ export declare const WordPressInstallationsApiFp: (configuration?: Configuration
|
|
|
36888
37358
|
*/
|
|
36889
37359
|
importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
36890
37360
|
/**
|
|
36891
|
-
* 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_create`) 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_create` 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
|
|
37361
|
+
* 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_create`) 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_create` 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 be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. 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.
|
|
36892
37362
|
* @summary Install WordPress
|
|
36893
37363
|
* @param {string} username
|
|
36894
37364
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -36987,7 +37457,7 @@ export declare const WordPressInstallationsApiFactory: (configuration?: Configur
|
|
|
36987
37457
|
*/
|
|
36988
37458
|
importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
36989
37459
|
/**
|
|
36990
|
-
* 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_create`) 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_create` 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
|
|
37460
|
+
* 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_create`) 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_create` 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 be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. 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.
|
|
36991
37461
|
* @summary Install WordPress
|
|
36992
37462
|
* @param {string} username
|
|
36993
37463
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -37093,7 +37563,7 @@ export declare class WordPressInstallationsApi extends BaseAPI {
|
|
|
37093
37563
|
*/
|
|
37094
37564
|
importWordPressWebsiteV1(username: string, domain: string, wordPressV1InstallationsImportWordPressRequest: WordPressV1InstallationsImportWordPressRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
37095
37565
|
/**
|
|
37096
|
-
* 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_create`) 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_create` 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
|
|
37566
|
+
* 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_create`) 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_create` 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 be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. 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.
|
|
37097
37567
|
* @summary Install WordPress
|
|
37098
37568
|
* @param {string} username
|
|
37099
37569
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|