hostinger-api-sdk 1.26.0 → 1.28.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 +2789 -531
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1522 -78
- package/dist/api.js +2011 -490
- 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 +1522 -78
- package/dist/esm/api.js +1935 -423
- 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/ReachTagsApi.md +483 -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/ReachV1ContactsTagsManageContactsRequest.md +23 -0
- package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
- package/docs/ReachV1ContactsTagsTagResource.md +26 -0
- package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
- package/docs/ReachV1ContactsUpdateRequest.md +33 -0
- package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
# ReachTagsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**assignAContactToATagV1**](#assignacontacttoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Assign a contact to a tag|
|
|
8
|
+
|[**assignContactsToATagV1**](#assigncontactstoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Assign contacts to a tag|
|
|
9
|
+
|[**createOrFindTagsV1**](#createorfindtagsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags | Create or find tags|
|
|
10
|
+
|[**deleteATagV1**](#deleteatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Delete a tag|
|
|
11
|
+
|[**listProfileTagsV1**](#listprofiletagsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/tags | List profile tags|
|
|
12
|
+
|[**removeAContactFromATagV1**](#removeacontactfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Remove a contact from a tag|
|
|
13
|
+
|[**removeContactsFromATagV1**](#removecontactsfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Remove contacts from a tag|
|
|
14
|
+
|[**renameATagV1**](#renameatagv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Rename a tag|
|
|
15
|
+
|
|
16
|
+
# **assignAContactToATagV1**
|
|
17
|
+
> ReachV1ContactsTagsTagResource assignAContactToATagV1()
|
|
18
|
+
|
|
19
|
+
Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
ReachTagsApi,
|
|
26
|
+
Configuration
|
|
27
|
+
} from 'hostinger-api-sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
31
|
+
|
|
32
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
33
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
34
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.assignAContactToATagV1(
|
|
37
|
+
profileUuid,
|
|
38
|
+
tagUuid,
|
|
39
|
+
contactUuid
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
48
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
49
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
**ReachV1ContactsTagsTagResource**
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
[apiToken](../README.md#apiToken)
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: Not defined
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### HTTP response details
|
|
67
|
+
| Status code | Description | Response headers |
|
|
68
|
+
|-------------|-------------|------------------|
|
|
69
|
+
|**200** | Success response | - |
|
|
70
|
+
|**401** | Unauthenticated response | - |
|
|
71
|
+
|**500** | Error response | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
74
|
+
|
|
75
|
+
# **assignContactsToATagV1**
|
|
76
|
+
> CommonSuccessEmptyResource assignContactsToATagV1(reachV1ContactsTagsManageContactsRequest)
|
|
77
|
+
|
|
78
|
+
Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
ReachTagsApi,
|
|
85
|
+
Configuration,
|
|
86
|
+
ReachV1ContactsTagsManageContactsRequest
|
|
87
|
+
} from 'hostinger-api-sdk';
|
|
88
|
+
|
|
89
|
+
const configuration = new Configuration();
|
|
90
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
91
|
+
|
|
92
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
93
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
94
|
+
let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
|
|
95
|
+
|
|
96
|
+
const { status, data } = await apiInstance.assignContactsToATagV1(
|
|
97
|
+
profileUuid,
|
|
98
|
+
tagUuid,
|
|
99
|
+
reachV1ContactsTagsManageContactsRequest
|
|
100
|
+
);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
|Name | Type | Description | Notes|
|
|
106
|
+
|------------- | ------------- | ------------- | -------------|
|
|
107
|
+
| **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
|
|
108
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
109
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**CommonSuccessEmptyResource**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[apiToken](../README.md#apiToken)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | Success empty response | - |
|
|
130
|
+
|**422** | Validation error response | - |
|
|
131
|
+
|**401** | Unauthenticated response | - |
|
|
132
|
+
|**500** | Error response | - |
|
|
133
|
+
|
|
134
|
+
[[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)
|
|
135
|
+
|
|
136
|
+
# **createOrFindTagsV1**
|
|
137
|
+
> Array<ReachV1ContactsTagsTagResource> createOrFindTagsV1(reachV1ContactsTagsStoreRequest)
|
|
138
|
+
|
|
139
|
+
Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
ReachTagsApi,
|
|
146
|
+
Configuration,
|
|
147
|
+
ReachV1ContactsTagsStoreRequest
|
|
148
|
+
} from 'hostinger-api-sdk';
|
|
149
|
+
|
|
150
|
+
const configuration = new Configuration();
|
|
151
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
152
|
+
|
|
153
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
154
|
+
let reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest; //
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.createOrFindTagsV1(
|
|
157
|
+
profileUuid,
|
|
158
|
+
reachV1ContactsTagsStoreRequest
|
|
159
|
+
);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Parameters
|
|
163
|
+
|
|
164
|
+
|Name | Type | Description | Notes|
|
|
165
|
+
|------------- | ------------- | ------------- | -------------|
|
|
166
|
+
| **reachV1ContactsTagsStoreRequest** | **ReachV1ContactsTagsStoreRequest**| | |
|
|
167
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Return type
|
|
171
|
+
|
|
172
|
+
**Array<ReachV1ContactsTagsTagResource>**
|
|
173
|
+
|
|
174
|
+
### Authorization
|
|
175
|
+
|
|
176
|
+
[apiToken](../README.md#apiToken)
|
|
177
|
+
|
|
178
|
+
### HTTP request headers
|
|
179
|
+
|
|
180
|
+
- **Content-Type**: application/json
|
|
181
|
+
- **Accept**: application/json
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### HTTP response details
|
|
185
|
+
| Status code | Description | Response headers |
|
|
186
|
+
|-------------|-------------|------------------|
|
|
187
|
+
|**200** | Success response | - |
|
|
188
|
+
|**422** | Validation error response | - |
|
|
189
|
+
|**401** | Unauthenticated response | - |
|
|
190
|
+
|**500** | Error response | - |
|
|
191
|
+
|
|
192
|
+
[[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)
|
|
193
|
+
|
|
194
|
+
# **deleteATagV1**
|
|
195
|
+
> CommonSuccessEmptyResource deleteATagV1()
|
|
196
|
+
|
|
197
|
+
Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
198
|
+
|
|
199
|
+
### Example
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
import {
|
|
203
|
+
ReachTagsApi,
|
|
204
|
+
Configuration
|
|
205
|
+
} from 'hostinger-api-sdk';
|
|
206
|
+
|
|
207
|
+
const configuration = new Configuration();
|
|
208
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
209
|
+
|
|
210
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
211
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
212
|
+
|
|
213
|
+
const { status, data } = await apiInstance.deleteATagV1(
|
|
214
|
+
profileUuid,
|
|
215
|
+
tagUuid
|
|
216
|
+
);
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
|Name | Type | Description | Notes|
|
|
222
|
+
|------------- | ------------- | ------------- | -------------|
|
|
223
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
224
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Return type
|
|
228
|
+
|
|
229
|
+
**CommonSuccessEmptyResource**
|
|
230
|
+
|
|
231
|
+
### Authorization
|
|
232
|
+
|
|
233
|
+
[apiToken](../README.md#apiToken)
|
|
234
|
+
|
|
235
|
+
### HTTP request headers
|
|
236
|
+
|
|
237
|
+
- **Content-Type**: Not defined
|
|
238
|
+
- **Accept**: application/json
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
### HTTP response details
|
|
242
|
+
| Status code | Description | Response headers |
|
|
243
|
+
|-------------|-------------|------------------|
|
|
244
|
+
|**200** | Success empty response | - |
|
|
245
|
+
|**401** | Unauthenticated response | - |
|
|
246
|
+
|**500** | Error response | - |
|
|
247
|
+
|
|
248
|
+
[[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)
|
|
249
|
+
|
|
250
|
+
# **listProfileTagsV1**
|
|
251
|
+
> Array<ReachV1ContactsTagsTagResource> listProfileTagsV1()
|
|
252
|
+
|
|
253
|
+
Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
254
|
+
|
|
255
|
+
### Example
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
import {
|
|
259
|
+
ReachTagsApi,
|
|
260
|
+
Configuration
|
|
261
|
+
} from 'hostinger-api-sdk';
|
|
262
|
+
|
|
263
|
+
const configuration = new Configuration();
|
|
264
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
265
|
+
|
|
266
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
267
|
+
|
|
268
|
+
const { status, data } = await apiInstance.listProfileTagsV1(
|
|
269
|
+
profileUuid
|
|
270
|
+
);
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Parameters
|
|
274
|
+
|
|
275
|
+
|Name | Type | Description | Notes|
|
|
276
|
+
|------------- | ------------- | ------------- | -------------|
|
|
277
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
**Array<ReachV1ContactsTagsTagResource>**
|
|
283
|
+
|
|
284
|
+
### Authorization
|
|
285
|
+
|
|
286
|
+
[apiToken](../README.md#apiToken)
|
|
287
|
+
|
|
288
|
+
### HTTP request headers
|
|
289
|
+
|
|
290
|
+
- **Content-Type**: Not defined
|
|
291
|
+
- **Accept**: application/json
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
### HTTP response details
|
|
295
|
+
| Status code | Description | Response headers |
|
|
296
|
+
|-------------|-------------|------------------|
|
|
297
|
+
|**200** | Success response | - |
|
|
298
|
+
|**401** | Unauthenticated response | - |
|
|
299
|
+
|**500** | Error response | - |
|
|
300
|
+
|
|
301
|
+
[[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)
|
|
302
|
+
|
|
303
|
+
# **removeAContactFromATagV1**
|
|
304
|
+
> CommonSuccessEmptyResource removeAContactFromATagV1()
|
|
305
|
+
|
|
306
|
+
Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
307
|
+
|
|
308
|
+
### Example
|
|
309
|
+
|
|
310
|
+
```typescript
|
|
311
|
+
import {
|
|
312
|
+
ReachTagsApi,
|
|
313
|
+
Configuration
|
|
314
|
+
} from 'hostinger-api-sdk';
|
|
315
|
+
|
|
316
|
+
const configuration = new Configuration();
|
|
317
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
318
|
+
|
|
319
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
320
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
321
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
322
|
+
|
|
323
|
+
const { status, data } = await apiInstance.removeAContactFromATagV1(
|
|
324
|
+
profileUuid,
|
|
325
|
+
tagUuid,
|
|
326
|
+
contactUuid
|
|
327
|
+
);
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Parameters
|
|
331
|
+
|
|
332
|
+
|Name | Type | Description | Notes|
|
|
333
|
+
|------------- | ------------- | ------------- | -------------|
|
|
334
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
335
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
336
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
**CommonSuccessEmptyResource**
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
[apiToken](../README.md#apiToken)
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: Not defined
|
|
350
|
+
- **Accept**: application/json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### HTTP response details
|
|
354
|
+
| Status code | Description | Response headers |
|
|
355
|
+
|-------------|-------------|------------------|
|
|
356
|
+
|**200** | Success empty response | - |
|
|
357
|
+
|**401** | Unauthenticated response | - |
|
|
358
|
+
|**500** | Error response | - |
|
|
359
|
+
|
|
360
|
+
[[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)
|
|
361
|
+
|
|
362
|
+
# **removeContactsFromATagV1**
|
|
363
|
+
> CommonSuccessEmptyResource removeContactsFromATagV1(reachV1ContactsTagsManageContactsRequest)
|
|
364
|
+
|
|
365
|
+
Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
366
|
+
|
|
367
|
+
### Example
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
import {
|
|
371
|
+
ReachTagsApi,
|
|
372
|
+
Configuration,
|
|
373
|
+
ReachV1ContactsTagsManageContactsRequest
|
|
374
|
+
} from 'hostinger-api-sdk';
|
|
375
|
+
|
|
376
|
+
const configuration = new Configuration();
|
|
377
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
378
|
+
|
|
379
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
380
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
381
|
+
let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
|
|
382
|
+
|
|
383
|
+
const { status, data } = await apiInstance.removeContactsFromATagV1(
|
|
384
|
+
profileUuid,
|
|
385
|
+
tagUuid,
|
|
386
|
+
reachV1ContactsTagsManageContactsRequest
|
|
387
|
+
);
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Parameters
|
|
391
|
+
|
|
392
|
+
|Name | Type | Description | Notes|
|
|
393
|
+
|------------- | ------------- | ------------- | -------------|
|
|
394
|
+
| **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
|
|
395
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
396
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### Return type
|
|
400
|
+
|
|
401
|
+
**CommonSuccessEmptyResource**
|
|
402
|
+
|
|
403
|
+
### Authorization
|
|
404
|
+
|
|
405
|
+
[apiToken](../README.md#apiToken)
|
|
406
|
+
|
|
407
|
+
### HTTP request headers
|
|
408
|
+
|
|
409
|
+
- **Content-Type**: application/json
|
|
410
|
+
- **Accept**: application/json
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### HTTP response details
|
|
414
|
+
| Status code | Description | Response headers |
|
|
415
|
+
|-------------|-------------|------------------|
|
|
416
|
+
|**200** | Success empty response | - |
|
|
417
|
+
|**422** | Validation error response | - |
|
|
418
|
+
|**401** | Unauthenticated response | - |
|
|
419
|
+
|**500** | Error response | - |
|
|
420
|
+
|
|
421
|
+
[[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)
|
|
422
|
+
|
|
423
|
+
# **renameATagV1**
|
|
424
|
+
> ReachV1ContactsTagsTagResource renameATagV1(reachV1ContactsTagsUpdateRequest)
|
|
425
|
+
|
|
426
|
+
Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
427
|
+
|
|
428
|
+
### Example
|
|
429
|
+
|
|
430
|
+
```typescript
|
|
431
|
+
import {
|
|
432
|
+
ReachTagsApi,
|
|
433
|
+
Configuration,
|
|
434
|
+
ReachV1ContactsTagsUpdateRequest
|
|
435
|
+
} from 'hostinger-api-sdk';
|
|
436
|
+
|
|
437
|
+
const configuration = new Configuration();
|
|
438
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
439
|
+
|
|
440
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
441
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
442
|
+
let reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest; //
|
|
443
|
+
|
|
444
|
+
const { status, data } = await apiInstance.renameATagV1(
|
|
445
|
+
profileUuid,
|
|
446
|
+
tagUuid,
|
|
447
|
+
reachV1ContactsTagsUpdateRequest
|
|
448
|
+
);
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Parameters
|
|
452
|
+
|
|
453
|
+
|Name | Type | Description | Notes|
|
|
454
|
+
|------------- | ------------- | ------------- | -------------|
|
|
455
|
+
| **reachV1ContactsTagsUpdateRequest** | **ReachV1ContactsTagsUpdateRequest**| | |
|
|
456
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
457
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
### Return type
|
|
461
|
+
|
|
462
|
+
**ReachV1ContactsTagsTagResource**
|
|
463
|
+
|
|
464
|
+
### Authorization
|
|
465
|
+
|
|
466
|
+
[apiToken](../README.md#apiToken)
|
|
467
|
+
|
|
468
|
+
### HTTP request headers
|
|
469
|
+
|
|
470
|
+
- **Content-Type**: application/json
|
|
471
|
+
- **Accept**: application/json
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
### HTTP response details
|
|
475
|
+
| Status code | Description | Response headers |
|
|
476
|
+
|-------------|-------------|------------------|
|
|
477
|
+
|**200** | Success response | - |
|
|
478
|
+
|**422** | Validation error response | - |
|
|
479
|
+
|**401** | Unauthenticated response | - |
|
|
480
|
+
|**500** | Error response | - |
|
|
481
|
+
|
|
482
|
+
[[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)
|
|
483
|
+
|
|
@@ -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)
|