hostinger-api-sdk 1.27.0 → 1.29.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 (38) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1622 -150
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +843 -17
  7. package/dist/api.js +1248 -44
  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 +843 -17
  15. package/dist/esm/api.js +1236 -36
  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/ReachListProfileSegmentsV1200Response.md +22 -0
  27. package/docs/ReachSegmentsApi.md +359 -4
  28. package/docs/ReachTagsApi.md +483 -0
  29. package/docs/ReachV1ContactsSegmentsProfileStoreRequest.md +25 -0
  30. package/docs/ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md +24 -0
  31. package/docs/ReachV1ContactsSegmentsProfileUpdateRequest.md +25 -0
  32. package/docs/ReachV1ContactsSegmentsSegmentContactsCountResource.md +20 -0
  33. package/docs/ReachV1ContactsSegmentsSegmentListItemResource.md +28 -0
  34. package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
  35. package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
  36. package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
  37. package/index.ts +1 -1
  38. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.28.0
4
+ * API Version: 1.30.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.28.0
6
+ * API Version: 1.30.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.28.0
4
+ * API Version: 1.30.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.28.0
6
+ * API Version: 1.30.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.28.0
4
+ * API Version: 1.30.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.28.0
6
+ * API Version: 1.30.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.27.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.29.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.28.0
4
+ * API Version: 1.30.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.28.0
6
+ * API Version: 1.30.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.28.0
4
+ * API Version: 1.30.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.28.0
7
+ * API Version: 1.30.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
@@ -0,0 +1,22 @@
1
+ # ReachListProfileSegmentsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<ReachV1ContactsSegmentsSegmentListItemResource>**](ReachV1ContactsSegmentsSegmentListItemResource.md) | Array of [`Reach.V1.Contacts.Segments.SegmentListItemResource`](#model/reachv1contactssegmentssegmentlistitemresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachListProfileSegmentsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachListProfileSegmentsV1200Response = {
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)
@@ -4,16 +4,78 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**countProfileSegmentContactsV1**](#countprofilesegmentcontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/count | Count profile segment contacts|
7
8
  |[**createANewContactSegmentV1**](#createanewcontactsegmentv1) | **POST** /api/reach/v1/segmentation/segments | Create a new contact segment|
9
+ |[**createAProfileSegmentV1**](#createaprofilesegmentv1) | **POST** /api/reach/v1/profiles/{profileUuid}/segmentation/segments | Create a profile segment|
10
+ |[**deleteAProfileSegmentV1**](#deleteaprofilesegmentv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid} | Delete a profile segment|
11
+ |[**getProfileSegmentDetailsV1**](#getprofilesegmentdetailsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid} | Get profile segment details|
8
12
  |[**getSegmentDetailsV1**](#getsegmentdetailsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid} | Get segment details|
9
13
  |[**listProfileSegmentContactsV1**](#listprofilesegmentcontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts | List profile segment contacts|
14
+ |[**listProfileSegmentsV1**](#listprofilesegmentsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments | List profile segments|
10
15
  |[**listSegmentContactsV1**](#listsegmentcontactsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid}/contacts | List segment contacts|
11
16
  |[**listSegmentsV1**](#listsegmentsv1) | **GET** /api/reach/v1/segmentation/segments | List segments|
17
+ |[**updateAProfileSegmentV1**](#updateaprofilesegmentv1) | **PUT** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid} | Update a profile segment|
18
+
19
+ # **countProfileSegmentContactsV1**
20
+ > ReachV1ContactsSegmentsSegmentContactsCountResource countProfileSegmentContactsV1()
21
+
22
+ Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ ReachSegmentsApi,
29
+ Configuration
30
+ } from 'hostinger-api-sdk';
31
+
32
+ const configuration = new Configuration();
33
+ const apiInstance = new ReachSegmentsApi(configuration);
34
+
35
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
36
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
37
+
38
+ const { status, data } = await apiInstance.countProfileSegmentContactsV1(
39
+ profileUuid,
40
+ segmentUuid
41
+ );
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ |Name | Type | Description | Notes|
47
+ |------------- | ------------- | ------------- | -------------|
48
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
49
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
50
+
51
+
52
+ ### Return type
53
+
54
+ **ReachV1ContactsSegmentsSegmentContactsCountResource**
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)
12
74
 
13
75
  # **createANewContactSegmentV1**
14
76
  > ReachV1ContactsSegmentsSegmentResource createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest)
15
77
 
16
- Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
78
+ Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17
79
 
18
80
  ### Example
19
81
 
@@ -65,10 +127,180 @@ const { status, data } = await apiInstance.createANewContactSegmentV1(
65
127
 
66
128
  [[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)
67
129
 
130
+ # **createAProfileSegmentV1**
131
+ > ReachV1ContactsSegmentsSegmentResource createAProfileSegmentV1(reachV1ContactsSegmentsProfileStoreRequest)
132
+
133
+ Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
134
+
135
+ ### Example
136
+
137
+ ```typescript
138
+ import {
139
+ ReachSegmentsApi,
140
+ Configuration,
141
+ ReachV1ContactsSegmentsProfileStoreRequest
142
+ } from 'hostinger-api-sdk';
143
+
144
+ const configuration = new Configuration();
145
+ const apiInstance = new ReachSegmentsApi(configuration);
146
+
147
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
148
+ let reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest; //
149
+
150
+ const { status, data } = await apiInstance.createAProfileSegmentV1(
151
+ profileUuid,
152
+ reachV1ContactsSegmentsProfileStoreRequest
153
+ );
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ |Name | Type | Description | Notes|
159
+ |------------- | ------------- | ------------- | -------------|
160
+ | **reachV1ContactsSegmentsProfileStoreRequest** | **ReachV1ContactsSegmentsProfileStoreRequest**| | |
161
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
162
+
163
+
164
+ ### Return type
165
+
166
+ **ReachV1ContactsSegmentsSegmentResource**
167
+
168
+ ### Authorization
169
+
170
+ [apiToken](../README.md#apiToken)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json
175
+ - **Accept**: application/json
176
+
177
+
178
+ ### HTTP response details
179
+ | Status code | Description | Response headers |
180
+ |-------------|-------------|------------------|
181
+ |**200** | Success response | - |
182
+ |**422** | Validation error response | - |
183
+ |**401** | Unauthenticated response | - |
184
+ |**500** | Error response | - |
185
+
186
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
187
+
188
+ # **deleteAProfileSegmentV1**
189
+ > CommonSuccessEmptyResource deleteAProfileSegmentV1()
190
+
191
+ Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
192
+
193
+ ### Example
194
+
195
+ ```typescript
196
+ import {
197
+ ReachSegmentsApi,
198
+ Configuration
199
+ } from 'hostinger-api-sdk';
200
+
201
+ const configuration = new Configuration();
202
+ const apiInstance = new ReachSegmentsApi(configuration);
203
+
204
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
205
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
206
+
207
+ const { status, data } = await apiInstance.deleteAProfileSegmentV1(
208
+ profileUuid,
209
+ segmentUuid
210
+ );
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ |Name | Type | Description | Notes|
216
+ |------------- | ------------- | ------------- | -------------|
217
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
218
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
219
+
220
+
221
+ ### Return type
222
+
223
+ **CommonSuccessEmptyResource**
224
+
225
+ ### Authorization
226
+
227
+ [apiToken](../README.md#apiToken)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
233
+
234
+
235
+ ### HTTP response details
236
+ | Status code | Description | Response headers |
237
+ |-------------|-------------|------------------|
238
+ |**200** | Success empty response | - |
239
+ |**401** | Unauthenticated response | - |
240
+ |**500** | Error response | - |
241
+
242
+ [[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)
243
+
244
+ # **getProfileSegmentDetailsV1**
245
+ > ReachV1ContactsSegmentsSegmentResource getProfileSegmentDetailsV1()
246
+
247
+ Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
248
+
249
+ ### Example
250
+
251
+ ```typescript
252
+ import {
253
+ ReachSegmentsApi,
254
+ Configuration
255
+ } from 'hostinger-api-sdk';
256
+
257
+ const configuration = new Configuration();
258
+ const apiInstance = new ReachSegmentsApi(configuration);
259
+
260
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
261
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
262
+
263
+ const { status, data } = await apiInstance.getProfileSegmentDetailsV1(
264
+ profileUuid,
265
+ segmentUuid
266
+ );
267
+ ```
268
+
269
+ ### Parameters
270
+
271
+ |Name | Type | Description | Notes|
272
+ |------------- | ------------- | ------------- | -------------|
273
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
274
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
275
+
276
+
277
+ ### Return type
278
+
279
+ **ReachV1ContactsSegmentsSegmentResource**
280
+
281
+ ### Authorization
282
+
283
+ [apiToken](../README.md#apiToken)
284
+
285
+ ### HTTP request headers
286
+
287
+ - **Content-Type**: Not defined
288
+ - **Accept**: application/json
289
+
290
+
291
+ ### HTTP response details
292
+ | Status code | Description | Response headers |
293
+ |-------------|-------------|------------------|
294
+ |**200** | Success response | - |
295
+ |**401** | Unauthenticated response | - |
296
+ |**500** | Error response | - |
297
+
298
+ [[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)
299
+
68
300
  # **getSegmentDetailsV1**
69
301
  > ReachV1ContactsSegmentsSegmentResource getSegmentDetailsV1()
70
302
 
71
- Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
303
+ Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
72
304
 
73
305
  ### Example
74
306
 
@@ -171,6 +403,68 @@ const { status, data } = await apiInstance.listProfileSegmentContactsV1(
171
403
  - **Accept**: application/json
172
404
 
173
405
 
406
+ ### HTTP response details
407
+ | Status code | Description | Response headers |
408
+ |-------------|-------------|------------------|
409
+ |**200** | Success response | - |
410
+ |**401** | Unauthenticated response | - |
411
+ |**500** | Error response | - |
412
+
413
+ [[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)
414
+
415
+ # **listProfileSegmentsV1**
416
+ > ReachListProfileSegmentsV1200Response listProfileSegmentsV1()
417
+
418
+ Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
419
+
420
+ ### Example
421
+
422
+ ```typescript
423
+ import {
424
+ ReachSegmentsApi,
425
+ Configuration
426
+ } from 'hostinger-api-sdk';
427
+
428
+ const configuration = new Configuration();
429
+ const apiInstance = new ReachSegmentsApi(configuration);
430
+
431
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
432
+ let countType: 'all' | 'subscribed'; //Which matching contacts to count for each segment (optional) (default to 'all')
433
+ let page: number; //Page number (optional) (default to undefined)
434
+ let perPage: number; //Number of items per page (optional) (default to 25)
435
+
436
+ const { status, data } = await apiInstance.listProfileSegmentsV1(
437
+ profileUuid,
438
+ countType,
439
+ page,
440
+ perPage
441
+ );
442
+ ```
443
+
444
+ ### Parameters
445
+
446
+ |Name | Type | Description | Notes|
447
+ |------------- | ------------- | ------------- | -------------|
448
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
449
+ | **countType** | [**&#39;all&#39; | &#39;subscribed&#39;**]**Array<&#39;all&#39; &#124; &#39;subscribed&#39;>** | Which matching contacts to count for each segment | (optional) defaults to 'all'|
450
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
451
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
452
+
453
+
454
+ ### Return type
455
+
456
+ **ReachListProfileSegmentsV1200Response**
457
+
458
+ ### Authorization
459
+
460
+ [apiToken](../README.md#apiToken)
461
+
462
+ ### HTTP request headers
463
+
464
+ - **Content-Type**: Not defined
465
+ - **Accept**: application/json
466
+
467
+
174
468
  ### HTTP response details
175
469
  | Status code | Description | Response headers |
176
470
  |-------------|-------------|------------------|
@@ -183,7 +477,7 @@ const { status, data } = await apiInstance.listProfileSegmentContactsV1(
183
477
  # **listSegmentContactsV1**
184
478
  > ReachListProfileSegmentContactsV1200Response listSegmentContactsV1()
185
479
 
186
- Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
480
+ Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
187
481
 
188
482
  ### Example
189
483
 
@@ -242,7 +536,7 @@ const { status, data } = await apiInstance.listSegmentContactsV1(
242
536
  # **listSegmentsV1**
243
537
  > Array<ReachV1ContactsSegmentsContactSegmentResource> listSegmentsV1()
244
538
 
245
- Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
539
+ Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
246
540
 
247
541
  ### Example
248
542
 
@@ -285,3 +579,64 @@ This endpoint does not have any parameters.
285
579
 
286
580
  [[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)
287
581
 
582
+ # **updateAProfileSegmentV1**
583
+ > ReachV1ContactsSegmentsSegmentResource updateAProfileSegmentV1(reachV1ContactsSegmentsProfileUpdateRequest)
584
+
585
+ Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
586
+
587
+ ### Example
588
+
589
+ ```typescript
590
+ import {
591
+ ReachSegmentsApi,
592
+ Configuration,
593
+ ReachV1ContactsSegmentsProfileUpdateRequest
594
+ } from 'hostinger-api-sdk';
595
+
596
+ const configuration = new Configuration();
597
+ const apiInstance = new ReachSegmentsApi(configuration);
598
+
599
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
600
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
601
+ let reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest; //
602
+
603
+ const { status, data } = await apiInstance.updateAProfileSegmentV1(
604
+ profileUuid,
605
+ segmentUuid,
606
+ reachV1ContactsSegmentsProfileUpdateRequest
607
+ );
608
+ ```
609
+
610
+ ### Parameters
611
+
612
+ |Name | Type | Description | Notes|
613
+ |------------- | ------------- | ------------- | -------------|
614
+ | **reachV1ContactsSegmentsProfileUpdateRequest** | **ReachV1ContactsSegmentsProfileUpdateRequest**| | |
615
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
616
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
617
+
618
+
619
+ ### Return type
620
+
621
+ **ReachV1ContactsSegmentsSegmentResource**
622
+
623
+ ### Authorization
624
+
625
+ [apiToken](../README.md#apiToken)
626
+
627
+ ### HTTP request headers
628
+
629
+ - **Content-Type**: application/json
630
+ - **Accept**: application/json
631
+
632
+
633
+ ### HTTP response details
634
+ | Status code | Description | Response headers |
635
+ |-------------|-------------|------------------|
636
+ |**200** | Success response | - |
637
+ |**422** | Validation error response | - |
638
+ |**401** | Unauthenticated response | - |
639
+ |**500** | Error response | - |
640
+
641
+ [[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)
642
+