hostinger-api-sdk 1.5.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +18747 -8098
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13312 -6201
- package/dist/api.js +10299 -3751
- 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 +13312 -6201
- package/dist/esm/api.js +10191 -3729
- 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/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingCacheApi.md +26 -130
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1CacheToggleCacheRequest.md +20 -0
- package/docs/HostingV1CacheToggleCachelessModeRequest.md +20 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createWebsiteV1**](#createwebsitev1) | **POST** /api/hosting/v1/websites | Create website|
|
|
8
|
+
|[**deleteWebsiteV1**](#deletewebsitev1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website|
|
|
8
9
|
|[**listWebsitesV1**](#listwebsitesv1) | **GET** /api/hosting/v1/websites | List websites|
|
|
9
10
|
|
|
10
11
|
# **createWebsiteV1**
|
|
@@ -38,6 +39,64 @@ const { status, data } = await apiInstance.createWebsiteV1(
|
|
|
38
39
|
| **hostingV1WebsitesCreateWebsiteRequest** | **HostingV1WebsitesCreateWebsiteRequest**| | |
|
|
39
40
|
|
|
40
41
|
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**CommonSuccessEmptyResource**
|
|
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 empty response | - |
|
|
60
|
+
|**422** | Validation error response | - |
|
|
61
|
+
|**401** | Unauthenticated response | - |
|
|
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
|
+
# **deleteWebsiteV1**
|
|
67
|
+
> CommonSuccessEmptyResource deleteWebsiteV1(hostingV1WebsitesDeleteWebsiteRequest)
|
|
68
|
+
|
|
69
|
+
Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
HostingWebsitesApi,
|
|
76
|
+
Configuration,
|
|
77
|
+
HostingV1WebsitesDeleteWebsiteRequest
|
|
78
|
+
} from 'hostinger-api-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new HostingWebsitesApi(configuration);
|
|
82
|
+
|
|
83
|
+
let domain: string; //Domain name (default to undefined)
|
|
84
|
+
let hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest; //
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.deleteWebsiteV1(
|
|
87
|
+
domain,
|
|
88
|
+
hostingV1WebsitesDeleteWebsiteRequest
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **hostingV1WebsitesDeleteWebsiteRequest** | **HostingV1WebsitesDeleteWebsiteRequest**| | |
|
|
97
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
98
|
+
|
|
99
|
+
|
|
41
100
|
### Return type
|
|
42
101
|
|
|
43
102
|
**CommonSuccessEmptyResource**
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# MailAPITokensApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAPITokenV1**](#createapitokenv1) | **POST** /api/mail/v1/orders/{orderId}/api-tokens | Create API token|
|
|
8
|
+
|[**listAPITokensV1**](#listapitokensv1) | **GET** /api/mail/v1/api-tokens | List API tokens|
|
|
9
|
+
|[**revokeAPITokenV1**](#revokeapitokenv1) | **DELETE** /api/mail/v1/api-tokens/{tokenId} | Revoke API token|
|
|
10
|
+
|
|
11
|
+
# **createAPITokenV1**
|
|
12
|
+
> MailV1ApiTokensApiTokenCreatedResource createAPITokenV1(mailV1SchemaCreateApiTokenRequestSchema)
|
|
13
|
+
|
|
14
|
+
Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
MailAPITokensApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
MailV1SchemaCreateApiTokenRequestSchema
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new MailAPITokensApi(configuration);
|
|
27
|
+
|
|
28
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
29
|
+
let mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createAPITokenV1(
|
|
32
|
+
orderId,
|
|
33
|
+
mailV1SchemaCreateApiTokenRequestSchema
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **mailV1SchemaCreateApiTokenRequestSchema** | **MailV1SchemaCreateApiTokenRequestSchema**| | |
|
|
42
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**MailV1ApiTokensApiTokenCreatedResource**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[apiToken](../README.md#apiToken)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**201** | Created response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**404** | Error response | - |
|
|
65
|
+
|**409** | Error response | - |
|
|
66
|
+
|**422** | Error response | - |
|
|
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
|
+
# **listAPITokensV1**
|
|
72
|
+
> MailListAPITokensV1200Response listAPITokensV1()
|
|
73
|
+
|
|
74
|
+
Retrieve a paginated list of [Hostinger Email API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
MailAPITokensApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'hostinger-api-sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new MailAPITokensApi(configuration);
|
|
86
|
+
|
|
87
|
+
let orderId: string; //Filter tokens by order resource ID. Single value or comma-separated list. (optional) (default to undefined)
|
|
88
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
89
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
90
|
+
|
|
91
|
+
const { status, data } = await apiInstance.listAPITokensV1(
|
|
92
|
+
orderId,
|
|
93
|
+
page,
|
|
94
|
+
perPage
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **orderId** | [**string**] | Filter tokens by order resource ID. Single value or comma-separated list. | (optional) defaults to undefined|
|
|
103
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
104
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**MailListAPITokensV1200Response**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[apiToken](../README.md#apiToken)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | Success response | - |
|
|
125
|
+
|**401** | Unauthenticated response | - |
|
|
126
|
+
|**422** | Error response | - |
|
|
127
|
+
|**500** | Error response | - |
|
|
128
|
+
|
|
129
|
+
[[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)
|
|
130
|
+
|
|
131
|
+
# **revokeAPITokenV1**
|
|
132
|
+
> CommonSuccessEmptyResource revokeAPITokenV1()
|
|
133
|
+
|
|
134
|
+
Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import {
|
|
140
|
+
MailAPITokensApi,
|
|
141
|
+
Configuration
|
|
142
|
+
} from 'hostinger-api-sdk';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new MailAPITokensApi(configuration);
|
|
146
|
+
|
|
147
|
+
let tokenId: string; //API token ID (returned when the token was created) (default to undefined)
|
|
148
|
+
|
|
149
|
+
const { status, data } = await apiInstance.revokeAPITokenV1(
|
|
150
|
+
tokenId
|
|
151
|
+
);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
|Name | Type | Description | Notes|
|
|
157
|
+
|------------- | ------------- | ------------- | -------------|
|
|
158
|
+
| **tokenId** | [**string**] | API token ID (returned when the token was created) | defaults to undefined|
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
**CommonSuccessEmptyResource**
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[apiToken](../README.md#apiToken)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: Not defined
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
|**200** | Success response | - |
|
|
179
|
+
|**401** | Unauthenticated response | - |
|
|
180
|
+
|**404** | Error response | - |
|
|
181
|
+
|**422** | Error response | - |
|
|
182
|
+
|**500** | Error response | - |
|
|
183
|
+
|
|
184
|
+
[[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)
|
|
185
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# MailAliasesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAliasV1**](#createaliasv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/aliases | Create alias|
|
|
8
|
+
|[**deleteAliasV1**](#deletealiasv1) | **DELETE** /api/mail/v1/aliases/{aliasId} | Delete alias|
|
|
9
|
+
|[**listAliasesV1**](#listaliasesv1) | **GET** /api/mail/v1/orders/{orderId}/aliases | List aliases|
|
|
10
|
+
|
|
11
|
+
# **createAliasV1**
|
|
12
|
+
> MailV1AliasesAliasResource createAliasV1(mailV1SchemaCreateAliasRequestSchema)
|
|
13
|
+
|
|
14
|
+
Create an alias for the given mailbox. The alias address is formed from the given local part and the domain of the mailbox. Messages sent to the alias are delivered to the mailbox.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
MailAliasesApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
MailV1SchemaCreateAliasRequestSchema
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
27
|
+
|
|
28
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
29
|
+
let mailV1SchemaCreateAliasRequestSchema: MailV1SchemaCreateAliasRequestSchema; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createAliasV1(
|
|
32
|
+
mailboxId,
|
|
33
|
+
mailV1SchemaCreateAliasRequestSchema
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **mailV1SchemaCreateAliasRequestSchema** | **MailV1SchemaCreateAliasRequestSchema**| | |
|
|
42
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**MailV1AliasesAliasResource**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[apiToken](../README.md#apiToken)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**201** | Created response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**404** | Error response | - |
|
|
65
|
+
|**409** | Error response | - |
|
|
66
|
+
|**422** | Error response | - |
|
|
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
|
+
# **deleteAliasV1**
|
|
72
|
+
> CommonSuccessEmptyResource deleteAliasV1()
|
|
73
|
+
|
|
74
|
+
Delete an alias. Messages sent to the alias address are no longer delivered to the mailbox.
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
MailAliasesApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'hostinger-api-sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
86
|
+
|
|
87
|
+
let aliasId: string; //Alias resource ID (default to undefined)
|
|
88
|
+
|
|
89
|
+
const { status, data } = await apiInstance.deleteAliasV1(
|
|
90
|
+
aliasId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **aliasId** | [**string**] | Alias resource ID | defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**CommonSuccessEmptyResource**
|
|
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 response | - |
|
|
120
|
+
|**404** | Error response | - |
|
|
121
|
+
|**422** | Error response | - |
|
|
122
|
+
|**500** | Error response | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
126
|
+
# **listAliasesV1**
|
|
127
|
+
> MailListAliasesV1200Response listAliasesV1()
|
|
128
|
+
|
|
129
|
+
Retrieve a paginated list of aliases across all mailboxes of a mail order.
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import {
|
|
135
|
+
MailAliasesApi,
|
|
136
|
+
Configuration
|
|
137
|
+
} from 'hostinger-api-sdk';
|
|
138
|
+
|
|
139
|
+
const configuration = new Configuration();
|
|
140
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
141
|
+
|
|
142
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
143
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
144
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
145
|
+
|
|
146
|
+
const { status, data } = await apiInstance.listAliasesV1(
|
|
147
|
+
orderId,
|
|
148
|
+
page,
|
|
149
|
+
perPage
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
158
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
159
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**MailListAliasesV1200Response**
|
|
165
|
+
|
|
166
|
+
### Authorization
|
|
167
|
+
|
|
168
|
+
[apiToken](../README.md#apiToken)
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: Not defined
|
|
173
|
+
- **Accept**: application/json
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### HTTP response details
|
|
177
|
+
| Status code | Description | Response headers |
|
|
178
|
+
|-------------|-------------|------------------|
|
|
179
|
+
|**200** | Success response | - |
|
|
180
|
+
|**401** | Unauthenticated response | - |
|
|
181
|
+
|**404** | Error response | - |
|
|
182
|
+
|**422** | Error response | - |
|
|
183
|
+
|**500** | Error response | - |
|
|
184
|
+
|
|
185
|
+
[[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)
|
|
186
|
+
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# MailAutorepliesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAutoreplyV1**](#createautoreplyv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/autoreplies | Create autoreply|
|
|
8
|
+
|[**deleteAutoreplyV1**](#deleteautoreplyv1) | **DELETE** /api/mail/v1/autoreplies/{autoreplyId} | Delete autoreply|
|
|
9
|
+
|[**listAutorepliesV1**](#listautorepliesv1) | **GET** /api/mail/v1/orders/{orderId}/autoreplies | List autoreplies|
|
|
10
|
+
|[**updateAutoreplyV1**](#updateautoreplyv1) | **PUT** /api/mail/v1/autoreplies/{autoreplyId} | Update autoreply|
|
|
11
|
+
|
|
12
|
+
# **createAutoreplyV1**
|
|
13
|
+
> MailV1AutorepliesAutoreplyResource createAutoreplyV1(mailV1SchemaUpsertAutoreplyRequestSchema)
|
|
14
|
+
|
|
15
|
+
Create an automatic reply for the given mailbox. A mailbox can have only one autoreply. Omit `starts_at` to activate the autoreply immediately and omit `ends_at` to keep it active indefinitely.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
MailAutorepliesApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
MailV1SchemaUpsertAutoreplyRequestSchema
|
|
24
|
+
} from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
28
|
+
|
|
29
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
30
|
+
let mailV1SchemaUpsertAutoreplyRequestSchema: MailV1SchemaUpsertAutoreplyRequestSchema; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.createAutoreplyV1(
|
|
33
|
+
mailboxId,
|
|
34
|
+
mailV1SchemaUpsertAutoreplyRequestSchema
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **mailV1SchemaUpsertAutoreplyRequestSchema** | **MailV1SchemaUpsertAutoreplyRequestSchema**| | |
|
|
43
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**MailV1AutorepliesAutoreplyResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**201** | Created response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**404** | Error response | - |
|
|
66
|
+
|**409** | Error response | - |
|
|
67
|
+
|**422** | Error response | - |
|
|
68
|
+
|**500** | Error response | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
72
|
+
# **deleteAutoreplyV1**
|
|
73
|
+
> CommonSuccessEmptyResource deleteAutoreplyV1()
|
|
74
|
+
|
|
75
|
+
Delete the autoreply of a mailbox. The mailbox stops sending automatic replies immediately.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
MailAutorepliesApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from 'hostinger-api-sdk';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
87
|
+
|
|
88
|
+
let autoreplyId: string; //Autoreply resource ID (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.deleteAutoreplyV1(
|
|
91
|
+
autoreplyId
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **autoreplyId** | [**string**] | Autoreply resource ID | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**CommonSuccessEmptyResource**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[apiToken](../README.md#apiToken)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Success response | - |
|
|
120
|
+
|**401** | Unauthenticated response | - |
|
|
121
|
+
|**404** | Error response | - |
|
|
122
|
+
|**422** | Error response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
127
|
+
# **listAutorepliesV1**
|
|
128
|
+
> MailListAutorepliesV1200Response listAutorepliesV1()
|
|
129
|
+
|
|
130
|
+
Retrieve a paginated list of autoreplies across all mailboxes of a mail order.
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import {
|
|
136
|
+
MailAutorepliesApi,
|
|
137
|
+
Configuration
|
|
138
|
+
} from 'hostinger-api-sdk';
|
|
139
|
+
|
|
140
|
+
const configuration = new Configuration();
|
|
141
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
142
|
+
|
|
143
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
144
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
145
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
146
|
+
|
|
147
|
+
const { status, data } = await apiInstance.listAutorepliesV1(
|
|
148
|
+
orderId,
|
|
149
|
+
page,
|
|
150
|
+
perPage
|
|
151
|
+
);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
|Name | Type | Description | Notes|
|
|
157
|
+
|------------- | ------------- | ------------- | -------------|
|
|
158
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
159
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
160
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**MailListAutorepliesV1200Response**
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[apiToken](../README.md#apiToken)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### HTTP response details
|
|
178
|
+
| Status code | Description | Response headers |
|
|
179
|
+
|-------------|-------------|------------------|
|
|
180
|
+
|**200** | Success response | - |
|
|
181
|
+
|**401** | Unauthenticated response | - |
|
|
182
|
+
|**404** | Error response | - |
|
|
183
|
+
|**422** | Error response | - |
|
|
184
|
+
|**500** | Error response | - |
|
|
185
|
+
|
|
186
|
+
[[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)
|
|
187
|
+
|
|
188
|
+
# **updateAutoreplyV1**
|
|
189
|
+
> MailV1AutorepliesAutoreplyResource updateAutoreplyV1(mailV1SchemaUpsertAutoreplyRequestSchema)
|
|
190
|
+
|
|
191
|
+
Replace the autoreply with the given content and schedule. Omitted optional fields are cleared: omit `starts_at` to activate the autoreply immediately and omit `ends_at` to keep it active indefinitely.
|
|
192
|
+
|
|
193
|
+
### Example
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import {
|
|
197
|
+
MailAutorepliesApi,
|
|
198
|
+
Configuration,
|
|
199
|
+
MailV1SchemaUpsertAutoreplyRequestSchema
|
|
200
|
+
} from 'hostinger-api-sdk';
|
|
201
|
+
|
|
202
|
+
const configuration = new Configuration();
|
|
203
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
204
|
+
|
|
205
|
+
let autoreplyId: string; //Autoreply resource ID (default to undefined)
|
|
206
|
+
let mailV1SchemaUpsertAutoreplyRequestSchema: MailV1SchemaUpsertAutoreplyRequestSchema; //
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.updateAutoreplyV1(
|
|
209
|
+
autoreplyId,
|
|
210
|
+
mailV1SchemaUpsertAutoreplyRequestSchema
|
|
211
|
+
);
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
|Name | Type | Description | Notes|
|
|
217
|
+
|------------- | ------------- | ------------- | -------------|
|
|
218
|
+
| **mailV1SchemaUpsertAutoreplyRequestSchema** | **MailV1SchemaUpsertAutoreplyRequestSchema**| | |
|
|
219
|
+
| **autoreplyId** | [**string**] | Autoreply resource ID | defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**MailV1AutorepliesAutoreplyResource**
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
[apiToken](../README.md#apiToken)
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: application/json
|
|
233
|
+
- **Accept**: application/json
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
|**200** | Success response | - |
|
|
240
|
+
|**401** | Unauthenticated response | - |
|
|
241
|
+
|**404** | Error response | - |
|
|
242
|
+
|**422** | Error response | - |
|
|
243
|
+
|**500** | Error response | - |
|
|
244
|
+
|
|
245
|
+
[[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)
|
|
246
|
+
|