hostinger-api-sdk 1.0.0 → 1.1.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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/api.ts +9653 -7541
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +5026 -3721
  7. package/dist/api.js +1671 -214
  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 +5026 -3721
  15. package/dist/esm/api.js +1655 -206
  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/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
  27. package/docs/WordPressPluginsApi.md +658 -0
  28. package/docs/WordPressThemesApi.md +369 -0
  29. package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
  30. package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
  31. package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
  32. package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
  33. package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
  34. package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
  35. package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
  36. package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
  37. package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
  38. package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
  39. package/docs/WordPressV1PluginsPluginResource.md +26 -0
  40. package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
  41. package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
  42. package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
  43. package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
  44. package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
  45. package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
  46. package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
  47. package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
  48. package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
  49. package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
  50. package/docs/WordPressV1ThemesThemeResource.md +34 -0
  51. package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
  52. package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
  53. package/index.ts +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,658 @@
1
+ # WordPressPluginsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**activateWordPressPluginV1**](#activatewordpresspluginv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate | Activate WordPress plugin|
8
+ |[**checkIfWooCommerceIsInstalledV1**](#checkifwoocommerceisinstalledv1) | **GET** /api/hosting/v1/wordpress/plugins/is-woocommerce-installed | Check if WooCommerce is installed|
9
+ |[**deactivateWordPressPluginV1**](#deactivatewordpresspluginv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate | Deactivate WordPress plugin|
10
+ |[**installWordPressPluginsV1**](#installwordpresspluginsv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install | Install WordPress plugins|
11
+ |[**listAvailableWordPressPluginsV1**](#listavailablewordpresspluginsv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available | List available WordPress plugins|
12
+ |[**listInstalledWordPressPluginsV1**](#listinstalledwordpresspluginsv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins | List installed WordPress plugins|
13
+ |[**listSuggestedWordPressPluginsV1**](#listsuggestedwordpresspluginsv1) | **GET** /api/hosting/v1/wordpress/plugins/suggested | List suggested WordPress plugins|
14
+ |[**searchWordPressPluginsV1**](#searchwordpresspluginsv1) | **GET** /api/hosting/v1/wordpress/plugins | Search WordPress plugins|
15
+ |[**uninstallWordPressPluginsV1**](#uninstallwordpresspluginsv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall | Uninstall WordPress plugins|
16
+ |[**updateHostingerWordPressPluginV1**](#updatehostingerwordpresspluginv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update | Update Hostinger WordPress plugin|
17
+ |[**updateWordPressPluginsV1**](#updatewordpresspluginsv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update | Update WordPress plugins|
18
+
19
+ # **activateWordPressPluginV1**
20
+ > CommonSuccessEmptyResource activateWordPressPluginV1(wordPressV1PluginsActivatePluginRequest)
21
+
22
+ Activate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ WordPressPluginsApi,
29
+ Configuration,
30
+ WordPressV1PluginsActivatePluginRequest
31
+ } from 'hostinger-api-sdk';
32
+
33
+ const configuration = new Configuration();
34
+ const apiInstance = new WordPressPluginsApi(configuration);
35
+
36
+ let username: string; // (default to undefined)
37
+ let software: string; //WordPress installation (software) identifier (default to undefined)
38
+ let wordPressV1PluginsActivatePluginRequest: WordPressV1PluginsActivatePluginRequest; //
39
+
40
+ const { status, data } = await apiInstance.activateWordPressPluginV1(
41
+ username,
42
+ software,
43
+ wordPressV1PluginsActivatePluginRequest
44
+ );
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ |Name | Type | Description | Notes|
50
+ |------------- | ------------- | ------------- | -------------|
51
+ | **wordPressV1PluginsActivatePluginRequest** | **WordPressV1PluginsActivatePluginRequest**| | |
52
+ | **username** | [**string**] | | defaults to undefined|
53
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
54
+
55
+
56
+ ### Return type
57
+
58
+ **CommonSuccessEmptyResource**
59
+
60
+ ### Authorization
61
+
62
+ [apiToken](../README.md#apiToken)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ |**200** | Success empty response | - |
74
+ |**422** | Validation error response | - |
75
+ |**401** | Unauthenticated response | - |
76
+ |**500** | Error response | - |
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
79
+
80
+ # **checkIfWooCommerceIsInstalledV1**
81
+ > WordPressV1PluginsWoocommerceInstalledResource checkIfWooCommerceIsInstalledV1()
82
+
83
+ Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
84
+
85
+ ### Example
86
+
87
+ ```typescript
88
+ import {
89
+ WordPressPluginsApi,
90
+ Configuration
91
+ } from 'hostinger-api-sdk';
92
+
93
+ const configuration = new Configuration();
94
+ const apiInstance = new WordPressPluginsApi(configuration);
95
+
96
+ let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
97
+
98
+ const { status, data } = await apiInstance.checkIfWooCommerceIsInstalledV1(
99
+ domain
100
+ );
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ |Name | Type | Description | Notes|
106
+ |------------- | ------------- | ------------- | -------------|
107
+ | **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
108
+
109
+
110
+ ### Return type
111
+
112
+ **WordPressV1PluginsWoocommerceInstalledResource**
113
+
114
+ ### Authorization
115
+
116
+ [apiToken](../README.md#apiToken)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: Not defined
121
+ - **Accept**: application/json
122
+
123
+
124
+ ### HTTP response details
125
+ | Status code | Description | Response headers |
126
+ |-------------|-------------|------------------|
127
+ |**200** | Success response | - |
128
+ |**401** | Unauthenticated response | - |
129
+ |**500** | Error response | - |
130
+
131
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
132
+
133
+ # **deactivateWordPressPluginV1**
134
+ > CommonSuccessEmptyResource deactivateWordPressPluginV1(wordPressV1PluginsDeactivatePluginRequest)
135
+
136
+ Deactivate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the deactivation job has been queued.
137
+
138
+ ### Example
139
+
140
+ ```typescript
141
+ import {
142
+ WordPressPluginsApi,
143
+ Configuration,
144
+ WordPressV1PluginsDeactivatePluginRequest
145
+ } from 'hostinger-api-sdk';
146
+
147
+ const configuration = new Configuration();
148
+ const apiInstance = new WordPressPluginsApi(configuration);
149
+
150
+ let username: string; // (default to undefined)
151
+ let software: string; //WordPress installation (software) identifier (default to undefined)
152
+ let wordPressV1PluginsDeactivatePluginRequest: WordPressV1PluginsDeactivatePluginRequest; //
153
+
154
+ const { status, data } = await apiInstance.deactivateWordPressPluginV1(
155
+ username,
156
+ software,
157
+ wordPressV1PluginsDeactivatePluginRequest
158
+ );
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+ |Name | Type | Description | Notes|
164
+ |------------- | ------------- | ------------- | -------------|
165
+ | **wordPressV1PluginsDeactivatePluginRequest** | **WordPressV1PluginsDeactivatePluginRequest**| | |
166
+ | **username** | [**string**] | | defaults to undefined|
167
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
168
+
169
+
170
+ ### Return type
171
+
172
+ **CommonSuccessEmptyResource**
173
+
174
+ ### Authorization
175
+
176
+ [apiToken](../README.md#apiToken)
177
+
178
+ ### HTTP request headers
179
+
180
+ - **Content-Type**: application/json
181
+ - **Accept**: application/json
182
+
183
+
184
+ ### HTTP response details
185
+ | Status code | Description | Response headers |
186
+ |-------------|-------------|------------------|
187
+ |**200** | Success empty response | - |
188
+ |**422** | Validation error response | - |
189
+ |**401** | Unauthenticated response | - |
190
+ |**500** | Error response | - |
191
+
192
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
193
+
194
+ # **installWordPressPluginsV1**
195
+ > CommonSuccessEmptyResource installWordPressPluginsV1(wordPressV1PluginsInstallPluginsRequest)
196
+
197
+ Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
198
+
199
+ ### Example
200
+
201
+ ```typescript
202
+ import {
203
+ WordPressPluginsApi,
204
+ Configuration,
205
+ WordPressV1PluginsInstallPluginsRequest
206
+ } from 'hostinger-api-sdk';
207
+
208
+ const configuration = new Configuration();
209
+ const apiInstance = new WordPressPluginsApi(configuration);
210
+
211
+ let username: string; // (default to undefined)
212
+ let software: string; //WordPress installation (software) identifier (default to undefined)
213
+ let wordPressV1PluginsInstallPluginsRequest: WordPressV1PluginsInstallPluginsRequest; //
214
+
215
+ const { status, data } = await apiInstance.installWordPressPluginsV1(
216
+ username,
217
+ software,
218
+ wordPressV1PluginsInstallPluginsRequest
219
+ );
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ |Name | Type | Description | Notes|
225
+ |------------- | ------------- | ------------- | -------------|
226
+ | **wordPressV1PluginsInstallPluginsRequest** | **WordPressV1PluginsInstallPluginsRequest**| | |
227
+ | **username** | [**string**] | | defaults to undefined|
228
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
229
+
230
+
231
+ ### Return type
232
+
233
+ **CommonSuccessEmptyResource**
234
+
235
+ ### Authorization
236
+
237
+ [apiToken](../README.md#apiToken)
238
+
239
+ ### HTTP request headers
240
+
241
+ - **Content-Type**: application/json
242
+ - **Accept**: application/json
243
+
244
+
245
+ ### HTTP response details
246
+ | Status code | Description | Response headers |
247
+ |-------------|-------------|------------------|
248
+ |**200** | Success empty response | - |
249
+ |**422** | Validation error response | - |
250
+ |**401** | Unauthenticated response | - |
251
+ |**500** | Error response | - |
252
+
253
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
254
+
255
+ # **listAvailableWordPressPluginsV1**
256
+ > Array<WordPressV1PluginsAvailablePluginResource> listAvailableWordPressPluginsV1()
257
+
258
+ List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
259
+
260
+ ### Example
261
+
262
+ ```typescript
263
+ import {
264
+ WordPressPluginsApi,
265
+ Configuration
266
+ } from 'hostinger-api-sdk';
267
+
268
+ const configuration = new Configuration();
269
+ const apiInstance = new WordPressPluginsApi(configuration);
270
+
271
+ let username: string; // (default to undefined)
272
+ let software: string; //WordPress installation (software) identifier (default to undefined)
273
+
274
+ const { status, data } = await apiInstance.listAvailableWordPressPluginsV1(
275
+ username,
276
+ software
277
+ );
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+ |Name | Type | Description | Notes|
283
+ |------------- | ------------- | ------------- | -------------|
284
+ | **username** | [**string**] | | defaults to undefined|
285
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
286
+
287
+
288
+ ### Return type
289
+
290
+ **Array<WordPressV1PluginsAvailablePluginResource>**
291
+
292
+ ### Authorization
293
+
294
+ [apiToken](../README.md#apiToken)
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: Not defined
299
+ - **Accept**: application/json
300
+
301
+
302
+ ### HTTP response details
303
+ | Status code | Description | Response headers |
304
+ |-------------|-------------|------------------|
305
+ |**200** | Success response | - |
306
+ |**401** | Unauthenticated response | - |
307
+ |**500** | Error response | - |
308
+
309
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
310
+
311
+ # **listInstalledWordPressPluginsV1**
312
+ > Array<WordPressV1PluginsInstalledPluginResource> listInstalledWordPressPluginsV1()
313
+
314
+ List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
315
+
316
+ ### Example
317
+
318
+ ```typescript
319
+ import {
320
+ WordPressPluginsApi,
321
+ Configuration
322
+ } from 'hostinger-api-sdk';
323
+
324
+ const configuration = new Configuration();
325
+ const apiInstance = new WordPressPluginsApi(configuration);
326
+
327
+ let username: string; // (default to undefined)
328
+ let software: string; //WordPress installation (software) identifier (default to undefined)
329
+ let category: 'cache'; //Filter installed plugins by category. (optional) (default to undefined)
330
+
331
+ const { status, data } = await apiInstance.listInstalledWordPressPluginsV1(
332
+ username,
333
+ software,
334
+ category
335
+ );
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+ |Name | Type | Description | Notes|
341
+ |------------- | ------------- | ------------- | -------------|
342
+ | **username** | [**string**] | | defaults to undefined|
343
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
344
+ | **category** | [**&#39;cache&#39;**]**Array<&#39;cache&#39;>** | Filter installed plugins by category. | (optional) defaults to undefined|
345
+
346
+
347
+ ### Return type
348
+
349
+ **Array<WordPressV1PluginsInstalledPluginResource>**
350
+
351
+ ### Authorization
352
+
353
+ [apiToken](../README.md#apiToken)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: Not defined
358
+ - **Accept**: application/json
359
+
360
+
361
+ ### HTTP response details
362
+ | Status code | Description | Response headers |
363
+ |-------------|-------------|------------------|
364
+ |**200** | Success response | - |
365
+ |**401** | Unauthenticated response | - |
366
+ |**500** | Error response | - |
367
+
368
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
369
+
370
+ # **listSuggestedWordPressPluginsV1**
371
+ > Array<WordPressV1PluginsSuggestedPluginGroupResource> listSuggestedWordPressPluginsV1()
372
+
373
+ List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
374
+
375
+ ### Example
376
+
377
+ ```typescript
378
+ import {
379
+ WordPressPluginsApi,
380
+ Configuration
381
+ } from 'hostinger-api-sdk';
382
+
383
+ const configuration = new Configuration();
384
+ const apiInstance = new WordPressPluginsApi(configuration);
385
+
386
+ let orderId: number; //Optionally scope suggestions to a specific order. (optional) (default to undefined)
387
+
388
+ const { status, data } = await apiInstance.listSuggestedWordPressPluginsV1(
389
+ orderId
390
+ );
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+ |Name | Type | Description | Notes|
396
+ |------------- | ------------- | ------------- | -------------|
397
+ | **orderId** | [**number**] | Optionally scope suggestions to a specific order. | (optional) defaults to undefined|
398
+
399
+
400
+ ### Return type
401
+
402
+ **Array<WordPressV1PluginsSuggestedPluginGroupResource>**
403
+
404
+ ### Authorization
405
+
406
+ [apiToken](../README.md#apiToken)
407
+
408
+ ### HTTP request headers
409
+
410
+ - **Content-Type**: Not defined
411
+ - **Accept**: application/json
412
+
413
+
414
+ ### HTTP response details
415
+ | Status code | Description | Response headers |
416
+ |-------------|-------------|------------------|
417
+ |**200** | Success response | - |
418
+ |**401** | Unauthenticated response | - |
419
+ |**500** | Error response | - |
420
+
421
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
422
+
423
+ # **searchWordPressPluginsV1**
424
+ > Array<WordPressV1PluginsPluginResource> searchWordPressPluginsV1()
425
+
426
+ Search the WordPress.org plugin directory for plugins available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
427
+
428
+ ### Example
429
+
430
+ ```typescript
431
+ import {
432
+ WordPressPluginsApi,
433
+ Configuration
434
+ } from 'hostinger-api-sdk';
435
+
436
+ const configuration = new Configuration();
437
+ const apiInstance = new WordPressPluginsApi(configuration);
438
+
439
+ let search: string; //Search term to match against plugin names. Minimum 3 characters. (default to undefined)
440
+
441
+ const { status, data } = await apiInstance.searchWordPressPluginsV1(
442
+ search
443
+ );
444
+ ```
445
+
446
+ ### Parameters
447
+
448
+ |Name | Type | Description | Notes|
449
+ |------------- | ------------- | ------------- | -------------|
450
+ | **search** | [**string**] | Search term to match against plugin names. Minimum 3 characters. | defaults to undefined|
451
+
452
+
453
+ ### Return type
454
+
455
+ **Array<WordPressV1PluginsPluginResource>**
456
+
457
+ ### Authorization
458
+
459
+ [apiToken](../README.md#apiToken)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: Not defined
464
+ - **Accept**: application/json
465
+
466
+
467
+ ### HTTP response details
468
+ | Status code | Description | Response headers |
469
+ |-------------|-------------|------------------|
470
+ |**200** | Success response | - |
471
+ |**401** | Unauthenticated response | - |
472
+ |**500** | Error response | - |
473
+
474
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
475
+
476
+ # **uninstallWordPressPluginsV1**
477
+ > CommonSuccessEmptyResource uninstallWordPressPluginsV1(wordPressV1PluginsUninstallPluginsRequest)
478
+
479
+ Uninstall one or more plugins from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
480
+
481
+ ### Example
482
+
483
+ ```typescript
484
+ import {
485
+ WordPressPluginsApi,
486
+ Configuration,
487
+ WordPressV1PluginsUninstallPluginsRequest
488
+ } from 'hostinger-api-sdk';
489
+
490
+ const configuration = new Configuration();
491
+ const apiInstance = new WordPressPluginsApi(configuration);
492
+
493
+ let username: string; // (default to undefined)
494
+ let software: string; //WordPress installation (software) identifier (default to undefined)
495
+ let wordPressV1PluginsUninstallPluginsRequest: WordPressV1PluginsUninstallPluginsRequest; //
496
+
497
+ const { status, data } = await apiInstance.uninstallWordPressPluginsV1(
498
+ username,
499
+ software,
500
+ wordPressV1PluginsUninstallPluginsRequest
501
+ );
502
+ ```
503
+
504
+ ### Parameters
505
+
506
+ |Name | Type | Description | Notes|
507
+ |------------- | ------------- | ------------- | -------------|
508
+ | **wordPressV1PluginsUninstallPluginsRequest** | **WordPressV1PluginsUninstallPluginsRequest**| | |
509
+ | **username** | [**string**] | | defaults to undefined|
510
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
511
+
512
+
513
+ ### Return type
514
+
515
+ **CommonSuccessEmptyResource**
516
+
517
+ ### Authorization
518
+
519
+ [apiToken](../README.md#apiToken)
520
+
521
+ ### HTTP request headers
522
+
523
+ - **Content-Type**: application/json
524
+ - **Accept**: application/json
525
+
526
+
527
+ ### HTTP response details
528
+ | Status code | Description | Response headers |
529
+ |-------------|-------------|------------------|
530
+ |**200** | Success empty response | - |
531
+ |**422** | Validation error response | - |
532
+ |**401** | Unauthenticated response | - |
533
+ |**500** | Error response | - |
534
+
535
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
536
+
537
+ # **updateHostingerWordPressPluginV1**
538
+ > CommonSuccessEmptyResource updateHostingerWordPressPluginV1(wordPressV1PluginsUpdateHostingerPluginRequest)
539
+
540
+ Update a Hostinger plugin to its latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
541
+
542
+ ### Example
543
+
544
+ ```typescript
545
+ import {
546
+ WordPressPluginsApi,
547
+ Configuration,
548
+ WordPressV1PluginsUpdateHostingerPluginRequest
549
+ } from 'hostinger-api-sdk';
550
+
551
+ const configuration = new Configuration();
552
+ const apiInstance = new WordPressPluginsApi(configuration);
553
+
554
+ let username: string; // (default to undefined)
555
+ let software: string; //WordPress installation (software) identifier (default to undefined)
556
+ let wordPressV1PluginsUpdateHostingerPluginRequest: WordPressV1PluginsUpdateHostingerPluginRequest; //
557
+
558
+ const { status, data } = await apiInstance.updateHostingerWordPressPluginV1(
559
+ username,
560
+ software,
561
+ wordPressV1PluginsUpdateHostingerPluginRequest
562
+ );
563
+ ```
564
+
565
+ ### Parameters
566
+
567
+ |Name | Type | Description | Notes|
568
+ |------------- | ------------- | ------------- | -------------|
569
+ | **wordPressV1PluginsUpdateHostingerPluginRequest** | **WordPressV1PluginsUpdateHostingerPluginRequest**| | |
570
+ | **username** | [**string**] | | defaults to undefined|
571
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
572
+
573
+
574
+ ### Return type
575
+
576
+ **CommonSuccessEmptyResource**
577
+
578
+ ### Authorization
579
+
580
+ [apiToken](../README.md#apiToken)
581
+
582
+ ### HTTP request headers
583
+
584
+ - **Content-Type**: application/json
585
+ - **Accept**: application/json
586
+
587
+
588
+ ### HTTP response details
589
+ | Status code | Description | Response headers |
590
+ |-------------|-------------|------------------|
591
+ |**200** | Success empty response | - |
592
+ |**422** | Validation error response | - |
593
+ |**401** | Unauthenticated response | - |
594
+ |**500** | Error response | - |
595
+
596
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
597
+
598
+ # **updateWordPressPluginsV1**
599
+ > CommonSuccessEmptyResource updateWordPressPluginsV1(wordPressV1PluginsUpdatePluginsRequest)
600
+
601
+ Update one or more installed plugins to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
602
+
603
+ ### Example
604
+
605
+ ```typescript
606
+ import {
607
+ WordPressPluginsApi,
608
+ Configuration,
609
+ WordPressV1PluginsUpdatePluginsRequest
610
+ } from 'hostinger-api-sdk';
611
+
612
+ const configuration = new Configuration();
613
+ const apiInstance = new WordPressPluginsApi(configuration);
614
+
615
+ let username: string; // (default to undefined)
616
+ let software: string; //WordPress installation (software) identifier (default to undefined)
617
+ let wordPressV1PluginsUpdatePluginsRequest: WordPressV1PluginsUpdatePluginsRequest; //
618
+
619
+ const { status, data } = await apiInstance.updateWordPressPluginsV1(
620
+ username,
621
+ software,
622
+ wordPressV1PluginsUpdatePluginsRequest
623
+ );
624
+ ```
625
+
626
+ ### Parameters
627
+
628
+ |Name | Type | Description | Notes|
629
+ |------------- | ------------- | ------------- | -------------|
630
+ | **wordPressV1PluginsUpdatePluginsRequest** | **WordPressV1PluginsUpdatePluginsRequest**| | |
631
+ | **username** | [**string**] | | defaults to undefined|
632
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
633
+
634
+
635
+ ### Return type
636
+
637
+ **CommonSuccessEmptyResource**
638
+
639
+ ### Authorization
640
+
641
+ [apiToken](../README.md#apiToken)
642
+
643
+ ### HTTP request headers
644
+
645
+ - **Content-Type**: application/json
646
+ - **Accept**: application/json
647
+
648
+
649
+ ### HTTP response details
650
+ | Status code | Description | Response headers |
651
+ |-------------|-------------|------------------|
652
+ |**200** | Success empty response | - |
653
+ |**422** | Validation error response | - |
654
+ |**401** | Unauthenticated response | - |
655
+ |**500** | Error response | - |
656
+
657
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
658
+