hostinger-api-mcp 0.3.2 → 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.
- package/README.md +253 -39
- package/gemini-extension.json +1 -1
- package/package.json +3 -2
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +707 -132
- package/src/core/tools/all.ts +707 -132
- package/src/core/tools/hosting.js +0 -132
- package/src/core/tools/hosting.ts +0 -132
- package/src/core/tools/wordpress.js +710 -0
- package/src/core/tools/wordpress.ts +721 -0
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +6 -0
- package/src/servers/wordpress.ts +6 -0
- package/types.d.ts +518 -93
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
// Auto-generated tool list for group: wordpress
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
"name": "hosting_installWordPressV1",
|
|
5
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
8
|
+
"inputSchema": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"username": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "username parameter"
|
|
14
|
+
},
|
|
15
|
+
"domain": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Domain of the existing website where WordPress will be installed"
|
|
18
|
+
},
|
|
19
|
+
"site_title": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Title of the WordPress site"
|
|
22
|
+
},
|
|
23
|
+
"language": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
26
|
+
},
|
|
27
|
+
"directory": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
30
|
+
},
|
|
31
|
+
"overwrite": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
34
|
+
},
|
|
35
|
+
"auto_updates": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "WordPress core auto-update policy",
|
|
38
|
+
"enum": [
|
|
39
|
+
"all",
|
|
40
|
+
"none",
|
|
41
|
+
"minor"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"version": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
47
|
+
},
|
|
48
|
+
"credentials": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"description": "WordPress admin credentials",
|
|
51
|
+
"properties": {
|
|
52
|
+
"email": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "email parameter"
|
|
55
|
+
},
|
|
56
|
+
"login": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "WordPress admin username"
|
|
59
|
+
},
|
|
60
|
+
"password": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "password parameter"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"email",
|
|
67
|
+
"login",
|
|
68
|
+
"password"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"database": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
74
|
+
"properties": {
|
|
75
|
+
"name": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Database name (username prefix added if missing)"
|
|
78
|
+
},
|
|
79
|
+
"password": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "password parameter"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"username",
|
|
88
|
+
"domain",
|
|
89
|
+
"site_title",
|
|
90
|
+
"credentials"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"security": [
|
|
94
|
+
{
|
|
95
|
+
"apiToken": []
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"group": "wordpress"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "hosting_listWordPressInstallationsV1",
|
|
102
|
+
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
103
|
+
"method": "GET",
|
|
104
|
+
"path": "/api/hosting/v1/wordpress/installations",
|
|
105
|
+
"inputSchema": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"username": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "Filter by specific username"
|
|
111
|
+
},
|
|
112
|
+
"domain": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "Filter by domain name (exact match)"
|
|
115
|
+
},
|
|
116
|
+
"ownership": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
119
|
+
"enum": [
|
|
120
|
+
"owned",
|
|
121
|
+
"managed",
|
|
122
|
+
"all"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": []
|
|
127
|
+
},
|
|
128
|
+
"security": [
|
|
129
|
+
{
|
|
130
|
+
"apiToken": []
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"group": "wordpress"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "hosting_activateWordPressPluginV1",
|
|
137
|
+
"description": "Activate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.",
|
|
138
|
+
"method": "POST",
|
|
139
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate",
|
|
140
|
+
"inputSchema": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"username": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "username parameter"
|
|
146
|
+
},
|
|
147
|
+
"software": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "WordPress installation (software) identifier"
|
|
150
|
+
},
|
|
151
|
+
"plugin": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Slug of the installed plugin to activate."
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": [
|
|
157
|
+
"username",
|
|
158
|
+
"software",
|
|
159
|
+
"plugin"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"security": [
|
|
163
|
+
{
|
|
164
|
+
"apiToken": []
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"group": "wordpress"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "hosting_deactivateWordPressPluginV1",
|
|
171
|
+
"description": "Deactivate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the\ndeactivation job has been queued.",
|
|
172
|
+
"method": "POST",
|
|
173
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate",
|
|
174
|
+
"inputSchema": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"username": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "username parameter"
|
|
180
|
+
},
|
|
181
|
+
"software": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"description": "WordPress installation (software) identifier"
|
|
184
|
+
},
|
|
185
|
+
"plugin": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "Slug of the installed plugin to deactivate."
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": [
|
|
191
|
+
"username",
|
|
192
|
+
"software",
|
|
193
|
+
"plugin"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"security": [
|
|
197
|
+
{
|
|
198
|
+
"apiToken": []
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"group": "wordpress"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "hosting_installWordPressPluginsV1",
|
|
205
|
+
"description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
|
|
206
|
+
"method": "POST",
|
|
207
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install",
|
|
208
|
+
"inputSchema": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"username": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "username parameter"
|
|
214
|
+
},
|
|
215
|
+
"software": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"description": "WordPress installation (software) identifier"
|
|
218
|
+
},
|
|
219
|
+
"plugins": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"description": "Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.",
|
|
222
|
+
"items": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"description": "Plugin slug"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"username",
|
|
230
|
+
"software",
|
|
231
|
+
"plugins"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"security": [
|
|
235
|
+
{
|
|
236
|
+
"apiToken": []
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"group": "wordpress"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "hosting_listAvailableWordPressPluginsV1",
|
|
243
|
+
"description": "List plugins recommended for installation on a WordPress installation that are\nnot yet installed.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
244
|
+
"method": "GET",
|
|
245
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available",
|
|
246
|
+
"inputSchema": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"username": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "username parameter"
|
|
252
|
+
},
|
|
253
|
+
"software": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "WordPress installation (software) identifier"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"username",
|
|
260
|
+
"software"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"security": [
|
|
264
|
+
{
|
|
265
|
+
"apiToken": []
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"group": "wordpress"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_listInstalledWordPressPluginsV1",
|
|
272
|
+
"description": "List plugins installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
273
|
+
"method": "GET",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
},
|
|
282
|
+
"software": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "WordPress installation (software) identifier"
|
|
285
|
+
},
|
|
286
|
+
"category": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "Filter installed plugins by category.",
|
|
289
|
+
"enum": [
|
|
290
|
+
"cache"
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"required": [
|
|
295
|
+
"username",
|
|
296
|
+
"software"
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
"security": [
|
|
300
|
+
{
|
|
301
|
+
"apiToken": []
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"group": "wordpress"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "hosting_searchWordPressPluginsV1",
|
|
308
|
+
"description": "Search the WordPress.org plugin directory for plugins available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.",
|
|
309
|
+
"method": "GET",
|
|
310
|
+
"path": "/api/hosting/v1/wordpress/plugins",
|
|
311
|
+
"inputSchema": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"search": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"description": "Search term to match against plugin names. Minimum 3 characters."
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"required": [
|
|
320
|
+
"search"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"security": [
|
|
324
|
+
{
|
|
325
|
+
"apiToken": []
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"group": "wordpress"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "hosting_listSuggestedWordPressPluginsV1",
|
|
332
|
+
"description": "List curated plugin suggestions grouped by website type.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.",
|
|
333
|
+
"method": "GET",
|
|
334
|
+
"path": "/api/hosting/v1/wordpress/plugins/suggested",
|
|
335
|
+
"inputSchema": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"order_id": {
|
|
339
|
+
"type": "integer",
|
|
340
|
+
"description": "Optionally scope suggestions to a specific order."
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": []
|
|
344
|
+
},
|
|
345
|
+
"security": [
|
|
346
|
+
{
|
|
347
|
+
"apiToken": []
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"group": "wordpress"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "hosting_checkIfWooCommerceIsInstalledV1",
|
|
354
|
+
"description": "Check whether WooCommerce is installed on any WordPress installation of a\ndomain. Optionally filter by domain to scope the check.",
|
|
355
|
+
"method": "GET",
|
|
356
|
+
"path": "/api/hosting/v1/wordpress/plugins/is-woocommerce-installed",
|
|
357
|
+
"inputSchema": {
|
|
358
|
+
"type": "object",
|
|
359
|
+
"properties": {
|
|
360
|
+
"domain": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "Filter by domain name (exact match)"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"required": []
|
|
366
|
+
},
|
|
367
|
+
"security": [
|
|
368
|
+
{
|
|
369
|
+
"apiToken": []
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"group": "wordpress"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "hosting_uninstallWordPressPluginsV1",
|
|
376
|
+
"description": "Uninstall one or more plugins from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.",
|
|
377
|
+
"method": "POST",
|
|
378
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall",
|
|
379
|
+
"inputSchema": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"properties": {
|
|
382
|
+
"username": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "username parameter"
|
|
385
|
+
},
|
|
386
|
+
"software": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "WordPress installation (software) identifier"
|
|
389
|
+
},
|
|
390
|
+
"plugins": {
|
|
391
|
+
"type": "array",
|
|
392
|
+
"description": "Slugs of the installed plugins to uninstall.",
|
|
393
|
+
"items": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"description": "Plugin slug"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"required": [
|
|
400
|
+
"username",
|
|
401
|
+
"software",
|
|
402
|
+
"plugins"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
"security": [
|
|
406
|
+
{
|
|
407
|
+
"apiToken": []
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"group": "wordpress"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "hosting_updateHostingerWordPressPluginV1",
|
|
414
|
+
"description": "Update a Hostinger plugin to its latest version on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
415
|
+
"method": "POST",
|
|
416
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update",
|
|
417
|
+
"inputSchema": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {
|
|
420
|
+
"username": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"description": "username parameter"
|
|
423
|
+
},
|
|
424
|
+
"software": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"description": "WordPress installation (software) identifier"
|
|
427
|
+
},
|
|
428
|
+
"slug": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"description": "Slug of the Hostinger plugin to update to its latest version.",
|
|
431
|
+
"enum": [
|
|
432
|
+
"hostinger",
|
|
433
|
+
"hostinger-ai-assistant",
|
|
434
|
+
"hostinger-affiliate-plugin",
|
|
435
|
+
"hostinger-easy-onboarding",
|
|
436
|
+
"hostinger-reach"
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"required": [
|
|
441
|
+
"username",
|
|
442
|
+
"software",
|
|
443
|
+
"slug"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"security": [
|
|
447
|
+
{
|
|
448
|
+
"apiToken": []
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"group": "wordpress"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "hosting_updateWordPressPluginsV1",
|
|
455
|
+
"description": "Update one or more installed plugins to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
456
|
+
"method": "POST",
|
|
457
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update",
|
|
458
|
+
"inputSchema": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"username": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"description": "username parameter"
|
|
464
|
+
},
|
|
465
|
+
"software": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"description": "WordPress installation (software) identifier"
|
|
468
|
+
},
|
|
469
|
+
"plugins": {
|
|
470
|
+
"type": "array",
|
|
471
|
+
"description": "Slugs of the installed plugins to update to their latest version.",
|
|
472
|
+
"items": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"description": "Plugin slug"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"required": [
|
|
479
|
+
"username",
|
|
480
|
+
"software",
|
|
481
|
+
"plugins"
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
"security": [
|
|
485
|
+
{
|
|
486
|
+
"apiToken": []
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"group": "wordpress"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "hosting_activateWordPressThemeV1",
|
|
493
|
+
"description": "Activate an installed theme on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.",
|
|
494
|
+
"method": "POST",
|
|
495
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate",
|
|
496
|
+
"inputSchema": {
|
|
497
|
+
"type": "object",
|
|
498
|
+
"properties": {
|
|
499
|
+
"username": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"description": "username parameter"
|
|
502
|
+
},
|
|
503
|
+
"software": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"description": "WordPress installation (software) identifier"
|
|
506
|
+
},
|
|
507
|
+
"theme": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"description": "Slug of the installed theme to activate."
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"required": [
|
|
513
|
+
"username",
|
|
514
|
+
"software",
|
|
515
|
+
"theme"
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
"security": [
|
|
519
|
+
{
|
|
520
|
+
"apiToken": []
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"group": "wordpress"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "hosting_installWordPressThemeV1",
|
|
527
|
+
"description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
|
|
528
|
+
"method": "POST",
|
|
529
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install",
|
|
530
|
+
"inputSchema": {
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"username": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "username parameter"
|
|
536
|
+
},
|
|
537
|
+
"software": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "WordPress installation (software) identifier"
|
|
540
|
+
},
|
|
541
|
+
"theme": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"description": "Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields."
|
|
544
|
+
},
|
|
545
|
+
"palette": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted."
|
|
548
|
+
},
|
|
549
|
+
"layout": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"description": "Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted."
|
|
552
|
+
},
|
|
553
|
+
"font": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"description": "Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.",
|
|
556
|
+
"enum": [
|
|
557
|
+
"professional",
|
|
558
|
+
"modern",
|
|
559
|
+
"elegant",
|
|
560
|
+
"creative",
|
|
561
|
+
"dynamic",
|
|
562
|
+
"default"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"required": [
|
|
567
|
+
"username",
|
|
568
|
+
"software",
|
|
569
|
+
"theme"
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
"security": [
|
|
573
|
+
{
|
|
574
|
+
"apiToken": []
|
|
575
|
+
}
|
|
576
|
+
],
|
|
577
|
+
"group": "wordpress"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "hosting_listInstalledWordPressThemesV1",
|
|
581
|
+
"description": "List themes installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
582
|
+
"method": "GET",
|
|
583
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes",
|
|
584
|
+
"inputSchema": {
|
|
585
|
+
"type": "object",
|
|
586
|
+
"properties": {
|
|
587
|
+
"username": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"description": "username parameter"
|
|
590
|
+
},
|
|
591
|
+
"software": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "WordPress installation (software) identifier"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"required": [
|
|
597
|
+
"username",
|
|
598
|
+
"software"
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"security": [
|
|
602
|
+
{
|
|
603
|
+
"apiToken": []
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"group": "wordpress"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "hosting_listWordPressThemesV1",
|
|
610
|
+
"description": "List WordPress themes available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.",
|
|
611
|
+
"method": "GET",
|
|
612
|
+
"path": "/api/hosting/v1/wordpress/themes",
|
|
613
|
+
"inputSchema": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": {
|
|
616
|
+
"order_id": {
|
|
617
|
+
"type": "integer",
|
|
618
|
+
"description": "Optionally scope themes to a specific order."
|
|
619
|
+
},
|
|
620
|
+
"search": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"description": "Search term to match against theme names."
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"required": []
|
|
626
|
+
},
|
|
627
|
+
"security": [
|
|
628
|
+
{
|
|
629
|
+
"apiToken": []
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
"group": "wordpress"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "hosting_uninstallWordPressThemesV1",
|
|
636
|
+
"description": "Uninstall one or more themes from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.",
|
|
637
|
+
"method": "POST",
|
|
638
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall",
|
|
639
|
+
"inputSchema": {
|
|
640
|
+
"type": "object",
|
|
641
|
+
"properties": {
|
|
642
|
+
"username": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"description": "username parameter"
|
|
645
|
+
},
|
|
646
|
+
"software": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "WordPress installation (software) identifier"
|
|
649
|
+
},
|
|
650
|
+
"themes": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"description": "Slugs of the installed themes to uninstall.",
|
|
653
|
+
"items": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "Theme slug"
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"required": [
|
|
660
|
+
"username",
|
|
661
|
+
"software",
|
|
662
|
+
"themes"
|
|
663
|
+
]
|
|
664
|
+
},
|
|
665
|
+
"security": [
|
|
666
|
+
{
|
|
667
|
+
"apiToken": []
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"group": "wordpress"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "hosting_updateWordPressThemesV1",
|
|
674
|
+
"description": "Update one or more installed themes to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
675
|
+
"method": "POST",
|
|
676
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update",
|
|
677
|
+
"inputSchema": {
|
|
678
|
+
"type": "object",
|
|
679
|
+
"properties": {
|
|
680
|
+
"username": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"description": "username parameter"
|
|
683
|
+
},
|
|
684
|
+
"software": {
|
|
685
|
+
"type": "string",
|
|
686
|
+
"description": "WordPress installation (software) identifier"
|
|
687
|
+
},
|
|
688
|
+
"themes": {
|
|
689
|
+
"type": "array",
|
|
690
|
+
"description": "Slugs of the installed themes to update to their latest version.",
|
|
691
|
+
"items": {
|
|
692
|
+
"type": "string",
|
|
693
|
+
"description": "Theme slug"
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"required": [
|
|
698
|
+
"username",
|
|
699
|
+
"software",
|
|
700
|
+
"themes"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
"security": [
|
|
704
|
+
{
|
|
705
|
+
"apiToken": []
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"group": "wordpress"
|
|
709
|
+
}
|
|
710
|
+
];
|