hostinger-api-sdk 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +2 -2
  2. package/api.ts +6549 -4800
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1357 -138
  7. package/dist/api.js +1143 -144
  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 +1357 -138
  15. package/dist/esm/api.js +1130 -136
  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/DomainsPortfolioApi.md +56 -0
  27. package/docs/DomainsTransferApi.md +56 -0
  28. package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
  29. package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
  30. package/docs/DomainsV1PortfolioClaimResource.md +24 -0
  31. package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
  32. package/docs/DomainsV1TransferClaimRequest.md +26 -0
  33. package/docs/ReachContactFieldsApi.md +239 -0
  34. package/docs/ReachContactsApi.md +308 -4
  35. package/docs/ReachListProfileContactsV1200Response.md +22 -0
  36. package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
  37. package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
  38. package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
  39. package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
  40. package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
  41. package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
  42. package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
  43. package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
  44. package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
  45. package/docs/ReachV1ContactsProfileContactResource.md +38 -0
  46. package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
  47. package/docs/ReachV1ContactsTagsTagResource.md +26 -0
  48. package/docs/ReachV1ContactsUpdateRequest.md +33 -0
  49. package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
  50. package/index.ts +1 -1
  51. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.28.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.28.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.28.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.28.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.28.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.28.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.25.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.27.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.28.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.28.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.28.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.26.0
7
+ * API Version: 1.28.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,6 +4,7 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainV1**](#claimfreedomainv1) | **POST** /api/domains/v1/portfolio/claim | Claim free domain|
7
8
  |[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
8
9
  |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
9
10
  |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
@@ -15,6 +16,61 @@ All URIs are relative to *https://developers.hostinger.com*
15
16
  |[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
16
17
  |[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
17
18
 
19
+ # **claimFreeDomainV1**
20
+ > DomainsV1PortfolioClaimResource claimFreeDomainV1(domainsV1PortfolioClaimRequest)
21
+
22
+ Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ DomainsPortfolioApi,
29
+ Configuration,
30
+ DomainsV1PortfolioClaimRequest
31
+ } from 'hostinger-api-sdk';
32
+
33
+ const configuration = new Configuration();
34
+ const apiInstance = new DomainsPortfolioApi(configuration);
35
+
36
+ let domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest; //
37
+
38
+ const { status, data } = await apiInstance.claimFreeDomainV1(
39
+ domainsV1PortfolioClaimRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **domainsV1PortfolioClaimRequest** | **DomainsV1PortfolioClaimRequest**| | |
48
+
49
+
50
+ ### Return type
51
+
52
+ **DomainsV1PortfolioClaimResource**
53
+
54
+ ### Authorization
55
+
56
+ [apiToken](../README.md#apiToken)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ |**200** | Success response | - |
68
+ |**422** | Validation error response | - |
69
+ |**401** | Unauthenticated response | - |
70
+ |**500** | Error response | - |
71
+
72
+ [[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)
73
+
18
74
  # **disableDomainLockV1**
19
75
  > CommonSuccessEmptyResource disableDomainLockV1()
20
76
 
@@ -4,9 +4,65 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainTransferV1**](#claimfreedomaintransferv1) | **POST** /api/domains/v1/transfers/claim | Claim free domain transfer|
7
8
  |[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
8
9
  |[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
9
10
 
11
+ # **claimFreeDomainTransferV1**
12
+ > DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
13
+
14
+ Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ DomainsTransferApi,
21
+ Configuration,
22
+ DomainsV1TransferClaimRequest
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new DomainsTransferApi(configuration);
27
+
28
+ let domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest; //
29
+
30
+ const { status, data } = await apiInstance.claimFreeDomainTransferV1(
31
+ domainsV1TransferClaimRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **domainsV1TransferClaimRequest** | **DomainsV1TransferClaimRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **DomainsV1TransferTransferResource**
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 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
+
10
66
  # **getTransferListV1**
11
67
  > Array<DomainsV1TransferTransferResource> getTransferListV1()
12
68
 
@@ -0,0 +1,24 @@
1
+ # DomainsV1PortfolioClaimRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
10
+ **additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1PortfolioClaimRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1PortfolioClaimRequest = {
18
+ domain,
19
+ domain_contacts,
20
+ additional_details,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,4 +1,4 @@
1
- # DomainsV1PortfolioPurchaseRequestDomainContacts
1
+ # DomainsV1PortfolioClaimRequestDomainContacts
2
2
 
3
3
  Domain contact information
4
4
 
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import { DomainsV1PortfolioPurchaseRequestDomainContacts } from 'hostinger-api-sdk';
17
+ import { DomainsV1PortfolioClaimRequestDomainContacts } from 'hostinger-api-sdk';
18
18
 
19
- const instance: DomainsV1PortfolioPurchaseRequestDomainContacts = {
19
+ const instance: DomainsV1PortfolioClaimRequestDomainContacts = {
20
20
  owner_id,
21
21
  admin_id,
22
22
  billing_id,
@@ -0,0 +1,24 @@
1
+ # DomainsV1PortfolioClaimResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **status** | **string** | Domain status | [optional] [default to undefined]
10
+ **created_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1PortfolioClaimResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1PortfolioClaimResource = {
18
+ domain,
19
+ status,
20
+ created_at,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **domain** | **string** | Domain name | [default to undefined]
9
9
  **item_id** | **string** | Catalog price item ID | [default to undefined]
10
10
  **payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
11
- **domain_contacts** | [**DomainsV1PortfolioPurchaseRequestDomainContacts**](DomainsV1PortfolioPurchaseRequestDomainContacts.md) | | [optional] [default to undefined]
11
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
12
12
  **additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
13
13
  **coupons** | **Array&lt;any&gt;** | Discount coupon codes | [optional] [default to undefined]
14
14
 
@@ -0,0 +1,26 @@
1
+ # DomainsV1TransferClaimRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **auth_code** | **string** | Authorization code from the current registrar | [default to undefined]
10
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
11
+ **should_keep_ns** | **boolean** | Keep the existing nameservers of the domain | [optional] [default to true]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DomainsV1TransferClaimRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: DomainsV1TransferClaimRequest = {
19
+ domain,
20
+ auth_code,
21
+ domain_contacts,
22
+ should_keep_ns,
23
+ };
24
+ ```
25
+
26
+ [[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,239 @@
1
+ # ReachContactFieldsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createAContactFieldV1**](#createacontactfieldv1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts/fields | Create a contact field|
8
+ |[**deleteAContactFieldV1**](#deleteacontactfieldv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid} | Delete a contact field|
9
+ |[**listContactFieldsV1**](#listcontactfieldsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/contacts/fields | List contact fields|
10
+ |[**updateAContactFieldV1**](#updateacontactfieldv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid} | Update a contact field|
11
+
12
+ # **createAContactFieldV1**
13
+ > ReachV1ContactsFieldsContactFieldResource createAContactFieldV1(reachV1ContactsFieldsStoreRequest)
14
+
15
+ Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ReachContactFieldsApi,
22
+ Configuration,
23
+ ReachV1ContactsFieldsStoreRequest
24
+ } from 'hostinger-api-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ReachContactFieldsApi(configuration);
28
+
29
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
30
+ let reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest; //
31
+
32
+ const { status, data } = await apiInstance.createAContactFieldV1(
33
+ profileUuid,
34
+ reachV1ContactsFieldsStoreRequest
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **reachV1ContactsFieldsStoreRequest** | **ReachV1ContactsFieldsStoreRequest**| | |
43
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **ReachV1ContactsFieldsContactFieldResource**
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
+ |**200** | Success response | - |
64
+ |**422** | Validation error response | - |
65
+ |**401** | Unauthenticated response | - |
66
+ |**500** | Error response | - |
67
+
68
+ [[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)
69
+
70
+ # **deleteAContactFieldV1**
71
+ > CommonSuccessEmptyResource deleteAContactFieldV1()
72
+
73
+ Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ ReachContactFieldsApi,
80
+ Configuration
81
+ } from 'hostinger-api-sdk';
82
+
83
+ const configuration = new Configuration();
84
+ const apiInstance = new ReachContactFieldsApi(configuration);
85
+
86
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
87
+ let fieldUuid: string; //Contact field uuid parameter (default to undefined)
88
+
89
+ const { status, data } = await apiInstance.deleteAContactFieldV1(
90
+ profileUuid,
91
+ fieldUuid
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
100
+ | **fieldUuid** | [**string**] | Contact field uuid parameter | defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **CommonSuccessEmptyResource**
106
+
107
+ ### Authorization
108
+
109
+ [apiToken](../README.md#apiToken)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | Success empty response | - |
121
+ |**401** | Unauthenticated 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
+ # **listContactFieldsV1**
127
+ > Array<ReachV1ContactsFieldsContactFieldResource> listContactFieldsV1()
128
+
129
+ Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
130
+
131
+ ### Example
132
+
133
+ ```typescript
134
+ import {
135
+ ReachContactFieldsApi,
136
+ Configuration
137
+ } from 'hostinger-api-sdk';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new ReachContactFieldsApi(configuration);
141
+
142
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
143
+
144
+ const { status, data } = await apiInstance.listContactFieldsV1(
145
+ profileUuid
146
+ );
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ |Name | Type | Description | Notes|
152
+ |------------- | ------------- | ------------- | -------------|
153
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
154
+
155
+
156
+ ### Return type
157
+
158
+ **Array<ReachV1ContactsFieldsContactFieldResource>**
159
+
160
+ ### Authorization
161
+
162
+ [apiToken](../README.md#apiToken)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: Not defined
167
+ - **Accept**: application/json
168
+
169
+
170
+ ### HTTP response details
171
+ | Status code | Description | Response headers |
172
+ |-------------|-------------|------------------|
173
+ |**200** | Success response | - |
174
+ |**401** | Unauthenticated response | - |
175
+ |**500** | Error response | - |
176
+
177
+ [[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)
178
+
179
+ # **updateAContactFieldV1**
180
+ > ReachV1ContactsFieldsContactFieldResource updateAContactFieldV1(reachV1ContactsFieldsUpdateRequest)
181
+
182
+ Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
183
+
184
+ ### Example
185
+
186
+ ```typescript
187
+ import {
188
+ ReachContactFieldsApi,
189
+ Configuration,
190
+ ReachV1ContactsFieldsUpdateRequest
191
+ } from 'hostinger-api-sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new ReachContactFieldsApi(configuration);
195
+
196
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
197
+ let fieldUuid: string; //Contact field uuid parameter (default to undefined)
198
+ let reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest; //
199
+
200
+ const { status, data } = await apiInstance.updateAContactFieldV1(
201
+ profileUuid,
202
+ fieldUuid,
203
+ reachV1ContactsFieldsUpdateRequest
204
+ );
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+ |Name | Type | Description | Notes|
210
+ |------------- | ------------- | ------------- | -------------|
211
+ | **reachV1ContactsFieldsUpdateRequest** | **ReachV1ContactsFieldsUpdateRequest**| | |
212
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
213
+ | **fieldUuid** | [**string**] | Contact field uuid parameter | defaults to undefined|
214
+
215
+
216
+ ### Return type
217
+
218
+ **ReachV1ContactsFieldsContactFieldResource**
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 response | - |
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
+