hostinger-api-sdk 1.26.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.
- package/README.md +2 -2
- package/api.ts +1625 -119
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1074 -13
- package/dist/api.js +1067 -216
- 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 +1074 -13
- package/dist/esm/api.js +1051 -205
- 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/ReachContactFieldsApi.md +239 -0
- package/docs/ReachContactsApi.md +308 -4
- package/docs/ReachListProfileContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
- package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
- package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
- package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
- package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
- package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
- package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
- package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
- package/docs/ReachV1ContactsProfileContactResource.md +38 -0
- package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
- package/docs/ReachV1ContactsTagsTagResource.md +26 -0
- package/docs/ReachV1ContactsUpdateRequest.md +33 -0
- package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/ReachContactsApi.md
CHANGED
|
@@ -5,10 +5,15 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createANewContactV1**](#createanewcontactv1) | **POST** /api/reach/v1/contacts | Create a new contact|
|
|
8
|
+
|[**createContactsInBulkV1**](#createcontactsinbulkv1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts/bulk | Create contacts in bulk|
|
|
8
9
|
|[**createNewContactsV1**](#createnewcontactsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts | Create new contacts|
|
|
9
10
|
|[**deleteAContactV1**](#deleteacontactv1) | **DELETE** /api/reach/v1/contacts/{uuid} | Delete a contact|
|
|
11
|
+
|[**deleteAProfileContactV1**](#deleteaprofilecontactv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid} | Delete a profile contact|
|
|
12
|
+
|[**getContactDetailsV1**](#getcontactdetailsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid} | Get contact details|
|
|
10
13
|
|[**listContactGroupsV1**](#listcontactgroupsv1) | **GET** /api/reach/v1/contacts/groups | List contact groups|
|
|
11
14
|
|[**listContactsV1**](#listcontactsv1) | **GET** /api/reach/v1/contacts | List contacts|
|
|
15
|
+
|[**listProfileContactsV1**](#listprofilecontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/contacts | List profile contacts|
|
|
16
|
+
|[**updateAContactV1**](#updateacontactv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid} | Update a contact|
|
|
12
17
|
|
|
13
18
|
# **createANewContactV1**
|
|
14
19
|
> CommonSuccessEmptyResource createANewContactV1(reachV1ContactsStoreRequest)
|
|
@@ -41,6 +46,64 @@ const { status, data } = await apiInstance.createANewContactV1(
|
|
|
41
46
|
| **reachV1ContactsStoreRequest** | **ReachV1ContactsStoreRequest**| | |
|
|
42
47
|
|
|
43
48
|
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**CommonSuccessEmptyResource**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[apiToken](../README.md#apiToken)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: application/json
|
|
60
|
+
- **Accept**: application/json
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**200** | Success empty response | - |
|
|
67
|
+
|**422** | Validation error response | - |
|
|
68
|
+
|**401** | Unauthenticated response | - |
|
|
69
|
+
|**500** | Error response | - |
|
|
70
|
+
|
|
71
|
+
[[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)
|
|
72
|
+
|
|
73
|
+
# **createContactsInBulkV1**
|
|
74
|
+
> CommonSuccessEmptyResource createContactsInBulkV1(reachV1ContactsBulkStoreRequest)
|
|
75
|
+
|
|
76
|
+
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
77
|
+
|
|
78
|
+
### Example
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import {
|
|
82
|
+
ReachContactsApi,
|
|
83
|
+
Configuration,
|
|
84
|
+
ReachV1ContactsBulkStoreRequest
|
|
85
|
+
} from 'hostinger-api-sdk';
|
|
86
|
+
|
|
87
|
+
const configuration = new Configuration();
|
|
88
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
89
|
+
|
|
90
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
91
|
+
let reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest; //
|
|
92
|
+
|
|
93
|
+
const { status, data } = await apiInstance.createContactsInBulkV1(
|
|
94
|
+
profileUuid,
|
|
95
|
+
reachV1ContactsBulkStoreRequest
|
|
96
|
+
);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
|Name | Type | Description | Notes|
|
|
102
|
+
|------------- | ------------- | ------------- | -------------|
|
|
103
|
+
| **reachV1ContactsBulkStoreRequest** | **ReachV1ContactsBulkStoreRequest**| | |
|
|
104
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
44
107
|
### Return type
|
|
45
108
|
|
|
46
109
|
**CommonSuccessEmptyResource**
|
|
@@ -126,7 +189,7 @@ const { status, data } = await apiInstance.createNewContactsV1(
|
|
|
126
189
|
# **deleteAContactV1**
|
|
127
190
|
> CommonSuccessEmptyResource deleteAContactV1()
|
|
128
191
|
|
|
129
|
-
Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
192
|
+
Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
|
|
130
193
|
|
|
131
194
|
### Example
|
|
132
195
|
|
|
@@ -167,6 +230,118 @@ const { status, data } = await apiInstance.deleteAContactV1(
|
|
|
167
230
|
- **Accept**: application/json
|
|
168
231
|
|
|
169
232
|
|
|
233
|
+
### HTTP response details
|
|
234
|
+
| Status code | Description | Response headers |
|
|
235
|
+
|-------------|-------------|------------------|
|
|
236
|
+
|**200** | Success response | - |
|
|
237
|
+
|**401** | Unauthenticated response | - |
|
|
238
|
+
|**500** | Error response | - |
|
|
239
|
+
|
|
240
|
+
[[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)
|
|
241
|
+
|
|
242
|
+
# **deleteAProfileContactV1**
|
|
243
|
+
> CommonSuccessEmptyResource deleteAProfileContactV1()
|
|
244
|
+
|
|
245
|
+
Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
|
|
246
|
+
|
|
247
|
+
### Example
|
|
248
|
+
|
|
249
|
+
```typescript
|
|
250
|
+
import {
|
|
251
|
+
ReachContactsApi,
|
|
252
|
+
Configuration
|
|
253
|
+
} from 'hostinger-api-sdk';
|
|
254
|
+
|
|
255
|
+
const configuration = new Configuration();
|
|
256
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
257
|
+
|
|
258
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
259
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
260
|
+
|
|
261
|
+
const { status, data } = await apiInstance.deleteAProfileContactV1(
|
|
262
|
+
profileUuid,
|
|
263
|
+
contactUuid
|
|
264
|
+
);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|Name | Type | Description | Notes|
|
|
270
|
+
|------------- | ------------- | ------------- | -------------|
|
|
271
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
272
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Return type
|
|
276
|
+
|
|
277
|
+
**CommonSuccessEmptyResource**
|
|
278
|
+
|
|
279
|
+
### Authorization
|
|
280
|
+
|
|
281
|
+
[apiToken](../README.md#apiToken)
|
|
282
|
+
|
|
283
|
+
### HTTP request headers
|
|
284
|
+
|
|
285
|
+
- **Content-Type**: Not defined
|
|
286
|
+
- **Accept**: application/json
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### HTTP response details
|
|
290
|
+
| Status code | Description | Response headers |
|
|
291
|
+
|-------------|-------------|------------------|
|
|
292
|
+
|**200** | Success empty response | - |
|
|
293
|
+
|**401** | Unauthenticated response | - |
|
|
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
|
+
|
|
298
|
+
# **getContactDetailsV1**
|
|
299
|
+
> ReachV1ContactsContactDetailsResource getContactDetailsV1()
|
|
300
|
+
|
|
301
|
+
Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
|
|
302
|
+
|
|
303
|
+
### Example
|
|
304
|
+
|
|
305
|
+
```typescript
|
|
306
|
+
import {
|
|
307
|
+
ReachContactsApi,
|
|
308
|
+
Configuration
|
|
309
|
+
} from 'hostinger-api-sdk';
|
|
310
|
+
|
|
311
|
+
const configuration = new Configuration();
|
|
312
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
313
|
+
|
|
314
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
315
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
316
|
+
|
|
317
|
+
const { status, data } = await apiInstance.getContactDetailsV1(
|
|
318
|
+
profileUuid,
|
|
319
|
+
contactUuid
|
|
320
|
+
);
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Parameters
|
|
324
|
+
|
|
325
|
+
|Name | Type | Description | Notes|
|
|
326
|
+
|------------- | ------------- | ------------- | -------------|
|
|
327
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
328
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
### Return type
|
|
332
|
+
|
|
333
|
+
**ReachV1ContactsContactDetailsResource**
|
|
334
|
+
|
|
335
|
+
### Authorization
|
|
336
|
+
|
|
337
|
+
[apiToken](../README.md#apiToken)
|
|
338
|
+
|
|
339
|
+
### HTTP request headers
|
|
340
|
+
|
|
341
|
+
- **Content-Type**: Not defined
|
|
342
|
+
- **Accept**: application/json
|
|
343
|
+
|
|
344
|
+
|
|
170
345
|
### HTTP response details
|
|
171
346
|
| Status code | Description | Response headers |
|
|
172
347
|
|-------------|-------------|------------------|
|
|
@@ -225,7 +400,7 @@ This endpoint does not have any parameters.
|
|
|
225
400
|
# **listContactsV1**
|
|
226
401
|
> ReachListContactsV1200Response listContactsV1()
|
|
227
402
|
|
|
228
|
-
Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
403
|
+
Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
|
|
229
404
|
|
|
230
405
|
### Example
|
|
231
406
|
|
|
@@ -239,7 +414,7 @@ const configuration = new Configuration();
|
|
|
239
414
|
const apiInstance = new ReachContactsApi(configuration);
|
|
240
415
|
|
|
241
416
|
let groupUuid: string; //Filter contacts by group UUID (optional) (default to undefined)
|
|
242
|
-
let subscriptionStatus: 'subscribed' | 'unsubscribed'; //Filter contacts by subscription status (optional) (default to undefined)
|
|
417
|
+
let subscriptionStatus: 'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'; //Filter contacts by subscription status (optional) (default to undefined)
|
|
243
418
|
let page: number; //Page number (optional) (default to undefined)
|
|
244
419
|
|
|
245
420
|
const { status, data } = await apiInstance.listContactsV1(
|
|
@@ -254,7 +429,7 @@ const { status, data } = await apiInstance.listContactsV1(
|
|
|
254
429
|
|Name | Type | Description | Notes|
|
|
255
430
|
|------------- | ------------- | ------------- | -------------|
|
|
256
431
|
| **groupUuid** | [**string**] | Filter contacts by group UUID | (optional) defaults to undefined|
|
|
257
|
-
| **subscriptionStatus** | [**'subscribed' | 'unsubscribed'**]**Array<'subscribed' | 'unsubscribed'>** | Filter contacts by subscription status | (optional) defaults to undefined|
|
|
432
|
+
| **subscriptionStatus** | [**'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'**]**Array<'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'>** | Filter contacts by subscription status | (optional) defaults to undefined|
|
|
258
433
|
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
259
434
|
|
|
260
435
|
|
|
@@ -281,3 +456,132 @@ const { status, data } = await apiInstance.listContactsV1(
|
|
|
281
456
|
|
|
282
457
|
[[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)
|
|
283
458
|
|
|
459
|
+
# **listProfileContactsV1**
|
|
460
|
+
> ReachListProfileContactsV1200Response listProfileContactsV1()
|
|
461
|
+
|
|
462
|
+
Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
|
|
463
|
+
|
|
464
|
+
### Example
|
|
465
|
+
|
|
466
|
+
```typescript
|
|
467
|
+
import {
|
|
468
|
+
ReachContactsApi,
|
|
469
|
+
Configuration
|
|
470
|
+
} from 'hostinger-api-sdk';
|
|
471
|
+
|
|
472
|
+
const configuration = new Configuration();
|
|
473
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
474
|
+
|
|
475
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
476
|
+
let subscriptionStatus: 'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'; //Filter contacts by subscription status (optional) (default to undefined)
|
|
477
|
+
let tagUuid: string; //Filter contacts by tag UUID (optional) (default to undefined)
|
|
478
|
+
let search: string; //Search contacts by email (optional) (default to undefined)
|
|
479
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
480
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
481
|
+
|
|
482
|
+
const { status, data } = await apiInstance.listProfileContactsV1(
|
|
483
|
+
profileUuid,
|
|
484
|
+
subscriptionStatus,
|
|
485
|
+
tagUuid,
|
|
486
|
+
search,
|
|
487
|
+
page,
|
|
488
|
+
perPage
|
|
489
|
+
);
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Parameters
|
|
493
|
+
|
|
494
|
+
|Name | Type | Description | Notes|
|
|
495
|
+
|------------- | ------------- | ------------- | -------------|
|
|
496
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
497
|
+
| **subscriptionStatus** | [**'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'**]**Array<'subscribed' | 'unsubscribed' | 'confirmed' | 'pending'>** | Filter contacts by subscription status | (optional) defaults to undefined|
|
|
498
|
+
| **tagUuid** | [**string**] | Filter contacts by tag UUID | (optional) defaults to undefined|
|
|
499
|
+
| **search** | [**string**] | Search contacts by email | (optional) defaults to undefined|
|
|
500
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
501
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
### Return type
|
|
505
|
+
|
|
506
|
+
**ReachListProfileContactsV1200Response**
|
|
507
|
+
|
|
508
|
+
### Authorization
|
|
509
|
+
|
|
510
|
+
[apiToken](../README.md#apiToken)
|
|
511
|
+
|
|
512
|
+
### HTTP request headers
|
|
513
|
+
|
|
514
|
+
- **Content-Type**: Not defined
|
|
515
|
+
- **Accept**: application/json
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
### HTTP response details
|
|
519
|
+
| Status code | Description | Response headers |
|
|
520
|
+
|-------------|-------------|------------------|
|
|
521
|
+
|**200** | Success response | - |
|
|
522
|
+
|**401** | Unauthenticated response | - |
|
|
523
|
+
|**500** | Error response | - |
|
|
524
|
+
|
|
525
|
+
[[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)
|
|
526
|
+
|
|
527
|
+
# **updateAContactV1**
|
|
528
|
+
> ReachV1ContactsProfileContactUpdateResource updateAContactV1(reachV1ContactsUpdateRequest)
|
|
529
|
+
|
|
530
|
+
Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
|
|
531
|
+
|
|
532
|
+
### Example
|
|
533
|
+
|
|
534
|
+
```typescript
|
|
535
|
+
import {
|
|
536
|
+
ReachContactsApi,
|
|
537
|
+
Configuration,
|
|
538
|
+
ReachV1ContactsUpdateRequest
|
|
539
|
+
} from 'hostinger-api-sdk';
|
|
540
|
+
|
|
541
|
+
const configuration = new Configuration();
|
|
542
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
543
|
+
|
|
544
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
545
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
546
|
+
let reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest; //
|
|
547
|
+
|
|
548
|
+
const { status, data } = await apiInstance.updateAContactV1(
|
|
549
|
+
profileUuid,
|
|
550
|
+
contactUuid,
|
|
551
|
+
reachV1ContactsUpdateRequest
|
|
552
|
+
);
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
### Parameters
|
|
556
|
+
|
|
557
|
+
|Name | Type | Description | Notes|
|
|
558
|
+
|------------- | ------------- | ------------- | -------------|
|
|
559
|
+
| **reachV1ContactsUpdateRequest** | **ReachV1ContactsUpdateRequest**| | |
|
|
560
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
561
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
### Return type
|
|
565
|
+
|
|
566
|
+
**ReachV1ContactsProfileContactUpdateResource**
|
|
567
|
+
|
|
568
|
+
### Authorization
|
|
569
|
+
|
|
570
|
+
[apiToken](../README.md#apiToken)
|
|
571
|
+
|
|
572
|
+
### HTTP request headers
|
|
573
|
+
|
|
574
|
+
- **Content-Type**: application/json
|
|
575
|
+
- **Accept**: application/json
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
### HTTP response details
|
|
579
|
+
| Status code | Description | Response headers |
|
|
580
|
+
|-------------|-------------|------------------|
|
|
581
|
+
|**200** | Success response | - |
|
|
582
|
+
|**422** | Validation error response | - |
|
|
583
|
+
|**401** | Unauthenticated response | - |
|
|
584
|
+
|**500** | Error response | - |
|
|
585
|
+
|
|
586
|
+
[[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)
|
|
587
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReachListProfileContactsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<ReachV1ContactsProfileContactResource>**](ReachV1ContactsProfileContactResource.md) | Array of [`Reach.V1.Contacts.ProfileContactResource`](#model/reachv1contactsprofilecontactresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachListProfileContactsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachListProfileContactsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,25 @@
|
|
|
1
|
+
# ReachV1ContactsBulkStoreRequest
|
|
2
|
+
|
|
3
|
+
Create many contacts in one call
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**contacts** | [**Array<ReachV1ContactsBulkStoreRequestContactsInner>**](ReachV1ContactsBulkStoreRequestContactsInner.md) | | [default to undefined]
|
|
10
|
+
**tag_uuids** | **Array<string>** | Existing tags to attach to every created contact | [optional] [default to undefined]
|
|
11
|
+
**note** | **string** | Note applied to every created contact | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ContactsBulkStoreRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ContactsBulkStoreRequest = {
|
|
19
|
+
contacts,
|
|
20
|
+
tag_uuids,
|
|
21
|
+
note,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,26 @@
|
|
|
1
|
+
# ReachV1ContactsBulkStoreRequestContactsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**surname** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ContactsBulkStoreRequestContactsInner } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ContactsBulkStoreRequestContactsInner = {
|
|
19
|
+
email,
|
|
20
|
+
name,
|
|
21
|
+
surname,
|
|
22
|
+
phone,
|
|
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,46 @@
|
|
|
1
|
+
# ReachV1ContactsContactDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**surname** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**subscription_status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**subscribed_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**unsubscribed_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**domain** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**source** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**note** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**tags** | [**Array<ReachV1ContactsTagsTagResource>**](ReachV1ContactsTagsTagResource.md) | | [optional] [default to undefined]
|
|
21
|
+
**fields** | [**Array<ReachV1ContactsFieldsContactFieldValueResource>**](ReachV1ContactsFieldsContactFieldValueResource.md) | Custom field values held by this contact | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { ReachV1ContactsContactDetailsResource } from 'hostinger-api-sdk';
|
|
27
|
+
|
|
28
|
+
const instance: ReachV1ContactsContactDetailsResource = {
|
|
29
|
+
uuid,
|
|
30
|
+
email,
|
|
31
|
+
name,
|
|
32
|
+
surname,
|
|
33
|
+
phone,
|
|
34
|
+
subscription_status,
|
|
35
|
+
subscribed_at,
|
|
36
|
+
unsubscribed_at,
|
|
37
|
+
created_at,
|
|
38
|
+
domain,
|
|
39
|
+
source,
|
|
40
|
+
note,
|
|
41
|
+
tags,
|
|
42
|
+
fields,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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,24 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsContactFieldOptionResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**sort_order** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ContactsFieldsContactFieldOptionResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ContactsFieldsContactFieldOptionResource = {
|
|
18
|
+
uuid,
|
|
19
|
+
label,
|
|
20
|
+
sort_order,
|
|
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)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsContactFieldResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**slug** | **string** | Derived from the label on creation and immutable afterwards | [optional] [default to undefined]
|
|
12
|
+
**_options** | [**Array<ReachV1ContactsFieldsContactFieldOptionResource>**](ReachV1ContactsFieldsContactFieldOptionResource.md) | Available choices. Always empty for the scalar field types. | [optional] [default to undefined]
|
|
13
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ReachV1ContactsFieldsContactFieldResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ReachV1ContactsFieldsContactFieldResource = {
|
|
21
|
+
uuid,
|
|
22
|
+
type,
|
|
23
|
+
label,
|
|
24
|
+
slug,
|
|
25
|
+
_options,
|
|
26
|
+
created_at,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,33 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsContactFieldValueResource
|
|
2
|
+
|
|
3
|
+
A custom contact field together with the value held by one contact
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**slug** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**value** | **string** | Set for the scalar field types, null for the choice types | [optional] [default to undefined]
|
|
14
|
+
**selected_option_uuids** | **Array<string>** | Chosen options for the choice field types, empty for the scalar types | [optional] [default to undefined]
|
|
15
|
+
**_options** | [**Array<ReachV1ContactsFieldsContactFieldOptionResource>**](ReachV1ContactsFieldsContactFieldOptionResource.md) | Every option the field offers, not only the selected ones | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ReachV1ContactsFieldsContactFieldValueResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ReachV1ContactsFieldsContactFieldValueResource = {
|
|
23
|
+
uuid,
|
|
24
|
+
type,
|
|
25
|
+
label,
|
|
26
|
+
slug,
|
|
27
|
+
value,
|
|
28
|
+
selected_option_uuids,
|
|
29
|
+
_options,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[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,25 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsStoreRequest
|
|
2
|
+
|
|
3
|
+
Define a custom contact field for the profile
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**type** | **string** | Immutable once the field exists | [default to undefined]
|
|
10
|
+
**label** | **string** | | [default to undefined]
|
|
11
|
+
**_options** | **Array<string>** | Required for single_choice and multi_choice, ignored for the scalar types. Labels must be unique regardless of casing. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ContactsFieldsStoreRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ContactsFieldsStoreRequest = {
|
|
19
|
+
type,
|
|
20
|
+
label,
|
|
21
|
+
_options,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,23 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsUpdateRequest
|
|
2
|
+
|
|
3
|
+
Rename a custom contact field and, for the choice types, replace its option set. The field type and slug are immutable.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**label** | **string** | | [default to undefined]
|
|
10
|
+
**_options** | [**Array<ReachV1ContactsFieldsUpdateRequestOptionsInner>**](ReachV1ContactsFieldsUpdateRequestOptionsInner.md) | Replaces the option set when provided. Entries carrying a uuid are kept and relabelled, entries without one are created, and any existing option missing from the list is deleted along with the values contacts hold for it. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ContactsFieldsUpdateRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ContactsFieldsUpdateRequest = {
|
|
18
|
+
label,
|
|
19
|
+
_options,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,22 @@
|
|
|
1
|
+
# ReachV1ContactsFieldsUpdateRequestOptionsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachV1ContactsFieldsUpdateRequestOptionsInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachV1ContactsFieldsUpdateRequestOptionsInner = {
|
|
17
|
+
uuid,
|
|
18
|
+
label,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|