@@ -4,6 +4,7 @@ All URIs are relative to *https://api.segmentapis.com*
4
4
5
5
| Method | HTTP request | Description |
6
6
| ------------- | ------------- | -------------|
7
+ | [ ** addAudienceScheduleToAudience** ] ( AudiencesApi.md#addAudienceScheduleToAudience ) | ** POST** /spaces/{spaceId}/audiences/{id}/schedules | Add Audience Schedule to Audience |
7
8
| [ ** createAudience** ] ( AudiencesApi.md#createAudience ) | ** POST** /spaces/{spaceId}/audiences | Create Audience |
8
9
| [ ** createAudiencePreview** ] ( AudiencesApi.md#createAudiencePreview ) | ** POST** /spaces/{spaceId}/audiences/previews | Create Audience Preview |
9
10
| [ ** getAudience** ] ( AudiencesApi.md#getAudience ) | ** GET** /spaces/{spaceId}/audiences/{id} | Get Audience |
@@ -17,6 +18,83 @@ All URIs are relative to *https://api.segmentapis.com*
17
18
18
19
19
20
21
+ ## Operation: addAudienceScheduleToAudience
22
+
23
+ > AddAudienceScheduleToAudience200Response addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceAlphaInput)
24
+
25
+ Add Audience Schedule to Audience
26
+
27
+ The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType
= ; LINKED). • This endpoint is in
** Alpha
** testing. Please submit any feedback by sending an email to
[email protected] . • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information.
28
+
29
+ ### Example
30
+
31
+ ``` java
32
+ // Import classes:
33
+ import com.segment.publicapi.ApiClient ;
34
+ import com.segment.publicapi.ApiException ;
35
+ import com.segment.publicapi.Configuration ;
36
+ import com.segment.publicapi.auth.* ;
37
+ import com.segment.publicapi.models.* ;
38
+ import com.segment.publicapi.api.AudiencesApi ;
39
+
40
+ public class Example {
41
+ public static void main (String [] args ) {
42
+ ApiClient defaultClient = Configuration . getDefaultApiClient();
43
+
44
+ // Configure HTTP bearer authorization: token
45
+ HttpBearerAuth token = (HttpBearerAuth ) defaultClient. getAuthentication(" token" );
46
+ token. setBearerToken(" BEARER TOKEN" );
47
+
48
+ AudiencesApi apiInstance = new AudiencesApi (defaultClient);
49
+ String spaceId = " 9aQ1Lj62S4bomZKLF4DPqW" ; // String |
50
+ String id = " aud_0ujsszwN8NRY24YaXiTIE2VWDTS" ; // String |
51
+ AddAudienceScheduleToAudienceAlphaInput addAudienceScheduleToAudienceAlphaInput = new AddAudienceScheduleToAudienceAlphaInput (); // AddAudienceScheduleToAudienceAlphaInput |
52
+ try {
53
+ AddAudienceScheduleToAudience200Response result = apiInstance. addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceAlphaInput);
54
+ System . out. println(result);
55
+ } catch (ApiException e) {
56
+ System . err. println(" Exception when calling AudiencesApi#addAudienceScheduleToAudience" );
57
+ System . err. println(" Status code: " + e. getCode());
58
+ System . err. println(" Reason: " + e. getResponseBody());
59
+ System . err. println(" Response headers: " + e. getResponseHeaders());
60
+ e. printStackTrace();
61
+ }
62
+ }
63
+ }
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ------------- | ------------- | ------------- | -------------|
71
+ | ** spaceId** | ** String** | | |
72
+ | ** id** | ** String** | | |
73
+ | ** addAudienceScheduleToAudienceAlphaInput** | [ ** AddAudienceScheduleToAudienceAlphaInput** ] ( AddAudienceScheduleToAudienceAlphaInput.md ) | | |
74
+
75
+ ### Return type
76
+
77
+ [ ** AddAudienceScheduleToAudience200Response** ] ( AddAudienceScheduleToAudience200Response.md )
78
+
79
+ ### Authorization
80
+
81
+ [ token] ( ../README.md#token )
82
+
83
+ ### HTTP request headers
84
+
85
+ - ** Content-Type** : application/vnd.segment.v1alpha+json
86
+ - ** Accept** : application/vnd.segment.v1alpha+json, application/json
87
+
88
+
89
+ ### HTTP response details
90
+ | Status code | Description | Response headers |
91
+ | -------------| -------------| ------------------|
92
+ | ** 200** | OK | - |
93
+ | ** 404** | Resource not found | - |
94
+ | ** 422** | Validation failure | - |
95
+ | ** 429** | Too many requests | - |
96
+
97
+
20
98
## Operation: createAudience
21
99
22
100
> CreateAudience200Response createAudience(spaceId, createAudienceBetaInput)
0 commit comments