hostinger-api-sdk 0.0.9 → 0.0.10

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 (119) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1777 -215
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1097 -164
  7. package/dist/api.js +1170 -37
  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 +1097 -164
  15. package/dist/esm/api.js +1155 -31
  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/BillingCatalogApi.md +54 -0
  27. package/docs/BillingOrdersApi.md +63 -0
  28. package/docs/BillingPaymentMethodsApi.md +162 -0
  29. package/docs/BillingSubscriptionsApi.md +113 -0
  30. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  31. package/docs/BillingV1CatalogCatalogItemResource.md +26 -0
  32. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  33. package/docs/BillingV1OrderOrderResource.md +36 -0
  34. package/docs/BillingV1OrderStoreRequest.md +24 -0
  35. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  36. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  37. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  38. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  39. package/docs/CommonSchemaErrorResponseSchema.md +22 -0
  40. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  41. package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
  42. package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
  43. package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -0
  44. package/docs/CommonSuccessEmptyResource.md +20 -0
  45. package/docs/DNSSnapshotApi.md +175 -0
  46. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  47. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  48. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  49. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  50. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  51. package/docs/DNSV1ZoneRecordResource.md +26 -0
  52. package/docs/DNSV1ZoneResetRequest.md +24 -0
  53. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  54. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  55. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  56. package/docs/DNSZoneApi.md +297 -0
  57. package/docs/DomainsAvailabilityApi.md +63 -0
  58. package/docs/DomainsForwardingApi.md +171 -0
  59. package/docs/DomainsPortfolioApi.md +439 -0
  60. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  61. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  62. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  63. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  64. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  65. package/docs/DomainsV1DomainDomainResource.md +30 -0
  66. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  67. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  68. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  69. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  70. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  71. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  72. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  73. package/docs/DomainsWHOISApi.md +279 -0
  74. package/docs/VPSActionsApi.md +121 -0
  75. package/docs/VPSBackupsApi.md +178 -0
  76. package/docs/VPSDataCentersApi.md +54 -0
  77. package/docs/VPSFirewallApi.md +577 -0
  78. package/docs/VPSGetActionListV1200Response.md +22 -0
  79. package/docs/VPSGetBackupListV1200Response.md +22 -0
  80. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  81. package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
  82. package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
  83. package/docs/VPSMalwareScannerApi.md +172 -0
  84. package/docs/VPSOSTemplatesApi.md +108 -0
  85. package/docs/VPSPTRRecordsApi.md +115 -0
  86. package/docs/VPSPostInstallScriptsApi.md +284 -0
  87. package/docs/VPSPublicKeysApi.md +230 -0
  88. package/docs/VPSRecoveryApi.md +120 -0
  89. package/docs/VPSSnapshotsApi.md +223 -0
  90. package/docs/VPSV1ActionActionResource.md +28 -0
  91. package/docs/VPSV1BackupBackupResource.md +24 -0
  92. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  93. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  94. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  95. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  96. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  97. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  98. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  99. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  100. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  101. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  102. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  103. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  104. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  105. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  106. package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
  107. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  108. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  109. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
  110. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  111. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  112. package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
  113. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  114. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  115. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
  116. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
  117. package/docs/VPSVirtualMachineApi.md +796 -0
  118. package/index.ts +1 -1
  119. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ # DNSV1ZoneUpdateRequestZoneInnerRecordsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **content** | **string** | Content of the name record | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DNSV1ZoneUpdateRequestZoneInnerRecordsInner } from 'hostinger-api-sdk';
14
+
15
+ const instance: DNSV1ZoneUpdateRequestZoneInnerRecordsInner = {
16
+ content,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,297 @@
1
+ # DNSZoneApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**deleteZoneRecordsV1**](#deletezonerecordsv1) | **DELETE** /api/dns/v1/zones/{domain} | Delete zone records|
8
+ |[**getRecordsV1**](#getrecordsv1) | **GET** /api/dns/v1/zones/{domain} | Get records|
9
+ |[**resetZoneRecordsV1**](#resetzonerecordsv1) | **POST** /api/dns/v1/zones/{domain}/reset | Reset zone records|
10
+ |[**updateZoneRecordsV1**](#updatezonerecordsv1) | **PUT** /api/dns/v1/zones/{domain} | Update zone records|
11
+ |[**validateZoneRecordsV1**](#validatezonerecordsv1) | **POST** /api/dns/v1/zones/{domain}/validate | Validate zone records|
12
+
13
+ # **deleteZoneRecordsV1**
14
+ > CommonSuccessEmptyResource deleteZoneRecordsV1(dNSV1ZoneDestroyRequest)
15
+
16
+ This endpoint deletes DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ DNSZoneApi,
23
+ Configuration,
24
+ DNSV1ZoneDestroyRequest
25
+ } from 'hostinger-api-sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new DNSZoneApi(configuration);
29
+
30
+ let domain: string; //Domain name (default to undefined)
31
+ let dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest; //
32
+
33
+ const { status, data } = await apiInstance.deleteZoneRecordsV1(
34
+ domain,
35
+ dNSV1ZoneDestroyRequest
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **dNSV1ZoneDestroyRequest** | **DNSV1ZoneDestroyRequest**| | |
44
+ | **domain** | [**string**] | Domain name | defaults to undefined|
45
+
46
+
47
+ ### Return type
48
+
49
+ **CommonSuccessEmptyResource**
50
+
51
+ ### Authorization
52
+
53
+ [apiToken](../README.md#apiToken)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | Success response | - |
65
+ |**422** | Validation error response | - |
66
+ |**401** | Unauthenticated | - |
67
+ |**500** | Error response | - |
68
+
69
+ [[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)
70
+
71
+ # **getRecordsV1**
72
+ > Array<DNSV1ZoneRecordResource> getRecordsV1()
73
+
74
+ This endpoint retrieves DNS zone records for a specific domain.
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ DNSZoneApi,
81
+ Configuration
82
+ } from 'hostinger-api-sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new DNSZoneApi(configuration);
86
+
87
+ let domain: string; //Domain name (default to undefined)
88
+
89
+ const { status, data } = await apiInstance.getRecordsV1(
90
+ domain
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **domain** | [**string**] | Domain name | defaults to undefined|
99
+
100
+
101
+ ### Return type
102
+
103
+ **Array<DNSV1ZoneRecordResource>**
104
+
105
+ ### Authorization
106
+
107
+ [apiToken](../README.md#apiToken)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | Success response | - |
119
+ |**401** | Unauthenticated | - |
120
+ |**500** | Error response | - |
121
+
122
+ [[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)
123
+
124
+ # **resetZoneRecordsV1**
125
+ > CommonSuccessEmptyResource resetZoneRecordsV1(dNSV1ZoneResetRequest)
126
+
127
+ This endpoint resets DNS zone to the default records.
128
+
129
+ ### Example
130
+
131
+ ```typescript
132
+ import {
133
+ DNSZoneApi,
134
+ Configuration,
135
+ DNSV1ZoneResetRequest
136
+ } from 'hostinger-api-sdk';
137
+
138
+ const configuration = new Configuration();
139
+ const apiInstance = new DNSZoneApi(configuration);
140
+
141
+ let domain: string; //Domain name (default to undefined)
142
+ let dNSV1ZoneResetRequest: DNSV1ZoneResetRequest; //
143
+
144
+ const { status, data } = await apiInstance.resetZoneRecordsV1(
145
+ domain,
146
+ dNSV1ZoneResetRequest
147
+ );
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ |Name | Type | Description | Notes|
153
+ |------------- | ------------- | ------------- | -------------|
154
+ | **dNSV1ZoneResetRequest** | **DNSV1ZoneResetRequest**| | |
155
+ | **domain** | [**string**] | Domain name | defaults to undefined|
156
+
157
+
158
+ ### Return type
159
+
160
+ **CommonSuccessEmptyResource**
161
+
162
+ ### Authorization
163
+
164
+ [apiToken](../README.md#apiToken)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: application/json
169
+ - **Accept**: application/json
170
+
171
+
172
+ ### HTTP response details
173
+ | Status code | Description | Response headers |
174
+ |-------------|-------------|------------------|
175
+ |**200** | Success response | - |
176
+ |**422** | Validation error response | - |
177
+ |**401** | Unauthenticated | - |
178
+ |**500** | Error response | - |
179
+
180
+ [[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)
181
+
182
+ # **updateZoneRecordsV1**
183
+ > CommonSuccessEmptyResource updateZoneRecordsV1(dNSV1ZoneUpdateRequest)
184
+
185
+ This endpoint updates DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.
186
+
187
+ ### Example
188
+
189
+ ```typescript
190
+ import {
191
+ DNSZoneApi,
192
+ Configuration,
193
+ DNSV1ZoneUpdateRequest
194
+ } from 'hostinger-api-sdk';
195
+
196
+ const configuration = new Configuration();
197
+ const apiInstance = new DNSZoneApi(configuration);
198
+
199
+ let domain: string; //Domain name (default to undefined)
200
+ let dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest; //
201
+
202
+ const { status, data } = await apiInstance.updateZoneRecordsV1(
203
+ domain,
204
+ dNSV1ZoneUpdateRequest
205
+ );
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ |Name | Type | Description | Notes|
211
+ |------------- | ------------- | ------------- | -------------|
212
+ | **dNSV1ZoneUpdateRequest** | **DNSV1ZoneUpdateRequest**| | |
213
+ | **domain** | [**string**] | Domain name | defaults to undefined|
214
+
215
+
216
+ ### Return type
217
+
218
+ **CommonSuccessEmptyResource**
219
+
220
+ ### Authorization
221
+
222
+ [apiToken](../README.md#apiToken)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: application/json
227
+ - **Accept**: application/json
228
+
229
+
230
+ ### HTTP response details
231
+ | Status code | Description | Response headers |
232
+ |-------------|-------------|------------------|
233
+ |**200** | Success response | - |
234
+ |**422** | Validation error response | - |
235
+ |**401** | Unauthenticated | - |
236
+ |**500** | Error response | - |
237
+
238
+ [[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)
239
+
240
+ # **validateZoneRecordsV1**
241
+ > CommonSuccessEmptyResource validateZoneRecordsV1(dNSV1ZoneUpdateRequest)
242
+
243
+ This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
244
+
245
+ ### Example
246
+
247
+ ```typescript
248
+ import {
249
+ DNSZoneApi,
250
+ Configuration,
251
+ DNSV1ZoneUpdateRequest
252
+ } from 'hostinger-api-sdk';
253
+
254
+ const configuration = new Configuration();
255
+ const apiInstance = new DNSZoneApi(configuration);
256
+
257
+ let domain: string; //Domain name (default to undefined)
258
+ let dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest; //
259
+
260
+ const { status, data } = await apiInstance.validateZoneRecordsV1(
261
+ domain,
262
+ dNSV1ZoneUpdateRequest
263
+ );
264
+ ```
265
+
266
+ ### Parameters
267
+
268
+ |Name | Type | Description | Notes|
269
+ |------------- | ------------- | ------------- | -------------|
270
+ | **dNSV1ZoneUpdateRequest** | **DNSV1ZoneUpdateRequest**| | |
271
+ | **domain** | [**string**] | Domain name | defaults to undefined|
272
+
273
+
274
+ ### Return type
275
+
276
+ **CommonSuccessEmptyResource**
277
+
278
+ ### Authorization
279
+
280
+ [apiToken](../README.md#apiToken)
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: application/json
285
+ - **Accept**: application/json
286
+
287
+
288
+ ### HTTP response details
289
+ | Status code | Description | Response headers |
290
+ |-------------|-------------|------------------|
291
+ |**200** | Success response | - |
292
+ |**422** | Validation error response | - |
293
+ |**401** | Unauthenticated | - |
294
+ |**500** | Error response | - |
295
+
296
+ [[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)
297
+
@@ -0,0 +1,63 @@
1
+ # DomainsAvailabilityApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**checkDomainAvailabilityV1**](#checkdomainavailabilityv1) | **POST** /api/domains/v1/availability | Check domain availability|
8
+
9
+ # **checkDomainAvailabilityV1**
10
+ > Array<DomainsV1AvailabilityAvailabilityResource> checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest)
11
+
12
+ This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ DomainsAvailabilityApi,
19
+ Configuration,
20
+ DomainsV1AvailabilityAvailabilityRequest
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new DomainsAvailabilityApi(configuration);
25
+
26
+ let domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest; //
27
+
28
+ const { status, data } = await apiInstance.checkDomainAvailabilityV1(
29
+ domainsV1AvailabilityAvailabilityRequest
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **domainsV1AvailabilityAvailabilityRequest** | **DomainsV1AvailabilityAvailabilityRequest**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ **Array<DomainsV1AvailabilityAvailabilityResource>**
43
+
44
+ ### Authorization
45
+
46
+ [apiToken](../README.md#apiToken)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Success response | - |
58
+ |**422** | Validation error response | - |
59
+ |**401** | Unauthenticated | - |
60
+ |**500** | Error response | - |
61
+
62
+ [[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)
63
+
@@ -0,0 +1,171 @@
1
+ # DomainsForwardingApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createForwardingDataV1**](#createforwardingdatav1) | **POST** /api/domains/v1/forwarding | Create forwarding data|
8
+ |[**deleteForwardingDataV1**](#deleteforwardingdatav1) | **DELETE** /api/domains/v1/forwarding/{domain} | Delete forwarding data|
9
+ |[**getForwardingDataV1**](#getforwardingdatav1) | **GET** /api/domains/v1/forwarding/{domain} | Get forwarding data|
10
+
11
+ # **createForwardingDataV1**
12
+ > DomainsV1ForwardingForwardingResource createForwardingDataV1(domainsV1ForwardingStoreRequest)
13
+
14
+ This endpoint creates domain forwarding data.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ DomainsForwardingApi,
21
+ Configuration,
22
+ DomainsV1ForwardingStoreRequest
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new DomainsForwardingApi(configuration);
27
+
28
+ let domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest; //
29
+
30
+ const { status, data } = await apiInstance.createForwardingDataV1(
31
+ domainsV1ForwardingStoreRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **domainsV1ForwardingStoreRequest** | **DomainsV1ForwardingStoreRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **DomainsV1ForwardingForwardingResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**422** | Validation error response | - |
61
+ |**401** | Unauthenticated | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
66
+ # **deleteForwardingDataV1**
67
+ > CommonSuccessEmptyResource deleteForwardingDataV1()
68
+
69
+ This endpoint deletes domain forwarding data.
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ DomainsForwardingApi,
76
+ Configuration
77
+ } from 'hostinger-api-sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new DomainsForwardingApi(configuration);
81
+
82
+ let domain: string; //Domain name (default to undefined)
83
+
84
+ const { status, data } = await apiInstance.deleteForwardingDataV1(
85
+ domain
86
+ );
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ |Name | Type | Description | Notes|
92
+ |------------- | ------------- | ------------- | -------------|
93
+ | **domain** | [**string**] | Domain name | defaults to undefined|
94
+
95
+
96
+ ### Return type
97
+
98
+ **CommonSuccessEmptyResource**
99
+
100
+ ### Authorization
101
+
102
+ [apiToken](../README.md#apiToken)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json
108
+
109
+
110
+ ### HTTP response details
111
+ | Status code | Description | Response headers |
112
+ |-------------|-------------|------------------|
113
+ |**200** | Success response | - |
114
+ |**401** | Unauthenticated | - |
115
+ |**500** | Error response | - |
116
+
117
+ [[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)
118
+
119
+ # **getForwardingDataV1**
120
+ > DomainsV1ForwardingForwardingResource getForwardingDataV1()
121
+
122
+ This endpoint retrieves domain forwarding data.
123
+
124
+ ### Example
125
+
126
+ ```typescript
127
+ import {
128
+ DomainsForwardingApi,
129
+ Configuration
130
+ } from 'hostinger-api-sdk';
131
+
132
+ const configuration = new Configuration();
133
+ const apiInstance = new DomainsForwardingApi(configuration);
134
+
135
+ let domain: string; //Domain name (default to undefined)
136
+
137
+ const { status, data } = await apiInstance.getForwardingDataV1(
138
+ domain
139
+ );
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ |Name | Type | Description | Notes|
145
+ |------------- | ------------- | ------------- | -------------|
146
+ | **domain** | [**string**] | Domain name | defaults to undefined|
147
+
148
+
149
+ ### Return type
150
+
151
+ **DomainsV1ForwardingForwardingResource**
152
+
153
+ ### Authorization
154
+
155
+ [apiToken](../README.md#apiToken)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: Not defined
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | Success response | - |
167
+ |**401** | Unauthenticated | - |
168
+ |**500** | Error response | - |
169
+
170
+ [[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)
171
+